Shopify app config link --client-id prompts for config name

I have reproduced the issue on the latest CLI version.

Yes, I am on the latest version

I have searched existing posts and this report is not a duplicate.

Yes, this isn’t a duplicate

In which of these areas are you experiencing a problem?

App

Expected behavior

When using CI=true SHOPIFY_CLI_PARTNERS_TOKEN=“atkn_123” shopify app config link --client-id=“abc”,

One of the two behaviours kicks in for getting the app config name:

  1. Revert to old behaviour (pre v3.93.0): CLI does not prompt for config name & instead uses the default app config name shopify.app.toml.
  2. Allows to pass --config=“abc” flag in combination with --client-id=“abc”.

Actual behavior

It prompts in a non-interactive environment for a config name.

Reproduction steps

  1. Clear you app root directory from any shopify.app.toml’s
  2. Install CLI v3.92.1
  3. Execute SHOPIFY_CLI_PARTNERS_TOKEN=“atkn_123” shopify app config link --client-id=“abc” again
  4. Watch it not prompt for the app config name and instead writes a shopify.app.toml file.
  5. Delete the app config file
  6. Install CLI v3.93.1
  7. Execute SHOPIFY_CLI_PARTNERS_TOKEN=“atkn_123” shopify app config link --client-id=“abc”
  8. Watch it prompt for the app config name.
  9. Execute SHOPIFY_CLI_PARTNERS_TOKEN=“atkn_123” shopify app config link --client-id=“abc” --config=“abc”
  10. Notice the error for supplying both --config and --client-id (client-id is exclusive to config)

Verbose output

Operating system

Mac OS Tahoe

CLI version

3.93.1

Hey @FrankHeijden - thanks for flagging this. This does seem like odd behaviour for the CLI. I’ll take a look into this on our end here and loop back with you.