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.