Shopify App CLI command reference (Ruby on Rails)
This reference lists the Ruby on Rails commands that you can use with Shopify App CLI.
Deploys the current Rails project to a hosting service. Currently, the only option is Heroku.
$ shopify deploy heroku
Generates boilerplate code inside your app project. Rails projects support generating new webhooks.
$ shopify generate webhook
Opens your local development app in your default browser.
$ shopify open
Adds example data to your development store. This is useful for testing your app’s behavior. You can create the following types of example store records:
- Draft orders
$ shopify populate products $ shopify populate customers $ shopify populate draftorders
By default, the
populate command adds 5 records. Use the
--count option to specify a different number:
$ shopify populate products --count 10
Starts a local development server for your project, as well as a public ngrok tunnel to your localhost.
$ shopify serve
Controls an HTTP tunnel to your local development app using ngrok. With the
tunnel command you can authenticate with ngrok and start or stop the tunnel.
To authenticate with ngrok, you need an authentication token. You can find it in your ngrok dashboard. Copy your token and use it with the
tunnel auth command:
$ shopify tunnel auth <token>
This writes your ngrok auth token to
~/.ngrok2/ngrok.yml. To learn more about ngrok configuration, refer to ngrok’s documentation.
To start an ngrok tunnel to your app in your localhost development environment:
$ shopify tunnel start
To stop the running ngrok tunnel:
$ shopify tunnel stop