Skip to content

[Bug]: app init is not usable in non-interactive environment #6081

Open
@aadamovskiy

Description

@aadamovskiy

Please confirm that you have:

  • Searched existing issues to see if your issue is a duplicate. (If you’ve found a duplicate issue, feel free to add additional information in a comment on it.)
  • Reproduced the issue in the latest CLI version.

In which of these areas are you experiencing a problem?

App

Expected behavior

There should be a way to init a new app without user prompt.

Actual behavior

In non-interactive environment command shopify app init fails with Failed to prompt: Create this project as a new app on Shopify?. There's no way to specify something like --client-id=new.

Verbose output

Verbose output
╭─ error ──────────────────────────────────────────────────────────────────────╮
│                                                                              │
│  Failed to prompt:                                                           │
│                                                                              │
│  Create this project as a new app on Shopify?                                │
│                                                                              │
│  This usually happens when running a command non-interactively, for example  │
│   in a CI environment, or when piping to or from another process.            │
│                                                                              │
│  To resolve this, specify the option in the command, or run the command in   │
│  an interactive environment such as your local terminal.                     │
│                                                                              │
╰──────────────────────────────────────────────────────────────────────────────╯

Reproduction steps

  1. shopify app init in non-interactive environment

Operating System

Mac OS

Shopify CLI version (shopify --version)

@shopify/cli/3.80.7 darwin-arm64 node-v24.1.0

Shell

No response

Node version (run node -v if you're not sure)

No response

What language and version are you using in your application?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions