| [ Web Proxy ] |
| Viewing: https://shopify.dev/docs/apps/build/scaffold-app | [Back] [Original] |
You're ready to scaffold a new app. You want to set up your development environment so that you can start coding.
In this tutorial, you'll scaffold an app that users access from the Shopify admin by using a React router template. You'll generate starter code and use Shopify CLI to develop your app. This React router template is the recommended path for most apps.
If you're building a simple custom-distribution app that doesn't need server-side logic, you can also create an app using the extension-only template with an App Home UI extension. To learn more about which option is right for your use case, see Apps in App Home.
In this tutorial, you'll learn how to do the following tasks:
[Screenshot showing a simple app in the Shopify admin]
Install the Shopify AI Toolkit to connect your AI coding assistant to Shopify's docs, APIs, and CLI. Your assistant gets the Shopify context it needs to answer questions, write code, and run commands more reliably.
In your terminal, run claude plugin install:
In your terminal, run codex plugin add:
In your terminal, install the Shopify plugin:
In Cursor Chat, add the Shopify plugin:
In your terminal, download the install script and run it:
Ensure the Agent plugins preview is enabled in your VS Code settings.
Open the Command Palette (Cmd+Shift+P on macOS, Ctrl+Shift+P on Windows/Linux) and run:
When prompted, enter the repository URL:
In your terminal, run claude plugin install:
You can create a new Shopify app using Shopify CLI
Navigate to the directory where you want to create your app.
Your app will be created in a new subdirectory.
Run the following command to create a new app:
When prompted, enter a name for your app, and then select Build a React Router app to use the React Router template.
A new app is created and Shopify CLI is installed along with all the dependencies that you need to build Shopify apps:
[An image showing an app being created in the terminal.]
After your app is created, you can work with using a local development server and the Shopify CLI.
Shopify CLI uses Cloudflare to create a tunnel that enables your app to be accessed using a HTTPS URL.
Navigate to your newly created app directory.
Run the following command to start a local server for your app:
Shopify CLI performs the following tasks:
To learn more about the processes that are executed when you run dev, refer to the Shopify CLI command reference.
To use a dev store with Shopify CLI, you need to be the store owner, or have a staff account on the store. If you create a dev store, then you're assigned as the store owner. Other staff members must be added to the store.
To use a dev store with Shopify CLI, you need to be the store owner, or have a staff account on the store. If you create a dev store, then you're assigned as the store owner. Other staff members must be added to the store.
You can install your app on your dev store, and automatically populate your dev store with products that you can use for app testing.
With the server running, press p to open your app's preview URL in a browser.
When you open the URL, you're prompted to install the app on your dev store.
Click Install app to install the app on the dev store.
You now have a dev store running with your new app installed:
[An image showing how to install your app on your dev store.]
From the home page of the new app, click Generate a product to create a product for your dev store.
| Web Proxy Viewer | New URL | Original Page |