Developer Preview: Localhost-based development for shopify app dev
shopify app dev
Now in developer preview, you can serve your app using localhost
(127.0.0.1
) with a self-signed HTTPS certificate, which Shopify CLI generates for you. This allows you to develop some Shopify app features without the use of network tunnels.
To serve your app using localhost, run the following command using Shopify CLI 3.77 or higher:
shopify app dev --use-localhost
Note: Localhost-based development isn't compatible with the Shopify features that directly invoke your app, such as Webhooks, App proxy, and Flow actions, and features that require you to test your app from another device, such as POS.
For more information, you can read about networking options for local development.
Please report any issues and provide your feedback about this feature on the Shopify Developer Community.