Shopify app version name's prefix is different app name

Hi, I surface the app deploy command creates versions with an incorrect app name prefix.
Specifically, when executing shopify app deploy --config=prod, the generated version name is crm-dev-remote-{number} instead of using the name(crm-prod-remote) from the app config toml.

Iโ€™ve listed all the details I can remember below. Iโ€™d appreciate a anyone follow-up on this.

Environment:

Shopify CLI Version: 3.84.1

Node Version: v20.10.0

OS: macOS (darwin-arm64)

Dashboard: Next Gen Dev Dashboard

Apps: 
  - crm-prod-remote: https://dev.shopify.com/dashboard/129686765/apps/278488645633
  - crm-dev-remote: https://dev.shopify.com/dashboard/129686765/apps/259830415361

shopify.app.prod.toml settings

# Learn more about configuring your app at https://shopify.dev/docs/apps/tools/cli/configuration

client_id = "*********"
extension_directories = [ "flow-actions/prod/**" ]
name = "crm-prod-remote"
application_url = "********"
embedded = true

[webhooks]
api_version = "2025-07"

  [[webhooks.subscriptions]]
  topics = [ "app/uninstalled" ]
  uri = "/webhooks/app/uninstalled"

  [[webhooks.subscriptions]]
  topics = [ "app/scopes_update" ]
  uri = "/webhooks/app/scopes_update"

[access_scopes]
# Learn more at https://shopify.dev/docs/apps/tools/cli/configuration#access_scopes
scopes = "write_products"

[auth]
redirect_urls = [ "********" ]

Expected Behavior:

  • The name field value crm-prod-remote from shopify.app.prod.toml should be used
  • Generated version names should be: crm-prod-remote-{number}
  • Examples: crm-prod-remote-1, crm-prod-remote-2, crm-prod-remote-3

Actual Behavior:

  • Generated version names are: crm-dev-remote-{number}

Steps Already Taken:

  1. Executed shopify app config link --reset to reset the configuration
  2. Re-executed shopify app config link to re-establish the connection

Additional Context:

  • The default configuration file shopify.app.toml does not exist (it was renamed to shopify.app.dev.toml)
  • The first deployment (2025-09-04) correctly generated crm-prod-remote-1, but subsequent deployments are using the incorrect naming pattern

Workaround:

Using --version flag explicitly works.

2 Likes

Same here. The naming is broken. I created the app from the Shopifyโ€™s Dev dashboard and then changed it and then it just did not take the name from toml file while running shopify app deploy.

Also --version does not work for the second deploy:

โ•ญโ”€ error โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ
โ”‚                                                                              โ”‚
โ”‚  Version couldn't be created.                                                โ”‚
โ”‚                                                                              โ”‚
โ”‚  An app version with the name `app-local-dev` already                        โ”‚
โ”‚  exists. Deploy again with a different version name.                         โ”‚
โ”‚                                                                              โ”‚
โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ

Hi @madfcat โ€“

When you use --version, we expect you to pass in the full unique name. You might append a commit hash or git version tag or timestamp.

We did determine that on Dev Platform the version name is currently originating from the app name in the package.json, or the current folder name if that doesnโ€™t exist. Iโ€™ve registered feedback on this change in behavior.

-Nick

2 Likes

Yup. It will be great when you change it. I have 3 different .toml files generated from env vars and .toml template for dev, stage and prod apps.

1 Like

Since CLI v3.87.0, the version tag will be using the app handle from the TOML by default, or the name if undefined.

1 Like