Skip to content

[Bug]: shopify app deploy doesn't recognize web_directories argument #6518

@vfonic

Description

@vfonic

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

I should be able to provide web_directories argument so that I can narrow down which shopify.web.toml files need to be used for deploying a new app version.
Or
shopify app deploy should NOT read any shopify.web.toml files as they seem to not be relevant to deploying a new app version. (?)

Actual behavior

> shopify app deploy -c shopify.app.local.toml                           
╭─ error ───────────────────────────────────────────────────────────────────────╮
│                                                                               │
│  You can only have one web with the backend role in your app                  │
│                                                                               │
╰───────────────────────────────────────────────────────────────────────────────╯

The above error is caused by having multiple shopify.web.toml files inside of a gitignored directory nested within the project root.

> shopify app deploy -c shopify.app.local.toml --web_directories "frontend"
╭─ error ───────────────────────────────────────────────────────────────────────╮
│                                                                               │
│  Nonexistent flag: --web_directories                                          │
│  See more help with --help                                                    │
│                                                                               │
╰───────────────────────────────────────────────────────────────────────────────

Verbose output

Provided above

Reproduction steps

Provided above

Operating System

macOS

Shopify CLI version (shopify --version)

3.85.4

Shell

oh my zsh

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

v22.12.0

What language and version are you using in your application?

ruby 3.4.4 (2025-05-14 revision a38531fd3f) +PRISM [arm64-darwin24]

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions