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

Topic summary

A user is migrating to Shopify CLI 3.0 and needs to deploy extensions from a custom build folder instead of the default location. They attempted using the --path build argument with shopify app deploy, but the CLI only detected extensions at the root level, not inside the build directory.

Another user provided the solution: use the extension_directories field in the shopify.app.toml configuration file to specify custom extension directories. They included a link to the official Shopify documentation for additional details on app structure and extensions configuration.

Summarized with AI on November 10. AI used: claude-sonnet-4-5-20250929.

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.

1 Like

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