What's your biggest current challenge? Have your say in Community Polls along the right column.
Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

How to specify a different path for the Shopify CLI to deploy from?

How to specify a different path for the Shopify CLI to deploy from?

suryarajendhran
Shopify Partner
3 0 1

I'm trying to migrate an app to the new 3.0 CLI. And my extensions are built to a different folder called build. I want the shopify CLI to look into that folder to find the expected extensions folder. I tried using the path argument but it still only detected the extensions folder when it is placed at the root and not inside the build folder.

 

This is how I used the command: 

 

shopify app deploy --path build

 

 

Any help would be appreciated. 

Reply 1 (1)

gonzaloriestra
Shopify Staff
4 2 14

Hi!

 

You can specify a custom directory for your extensions with the extension_directories field in shopify.app.toml.

 

More info: https://shopify.dev/docs/apps/structure#extensions

To learn more visit the Shopify Help Center or the Community Blog.