Skip to content

fly launch for Shopify apps fails: shopify app deploy --force — --force removed in Shopify CLI 4.x #151

Description

@NeuroticCoder91

fly launch aborts when scaffolding a Shopify app. flyShopifyConfig in fly.js runs:

execSync(`shopify app deploy --force --config ${configFile}`, { stdio: 'inherit' })

but the --force flag was removed from shopify app deploy in current Shopify CLI (reproduced on 4.2.0). The valid flags are now: reset, allow-updates, allow-deletes, no-release, no-build, message, version, source-control-url, config, client-id, path. So the command exits with:

✗ Nonexistent flag: --force
...
Error: failed to generate Dockerfile: exit status 1
    at GDF.flyShopifyConfig (.../@flydotio/dockerfile/fly.js:395:7)

Because it throws inside Dockerfile generation, the entire fly launch fails — no fly.toml is produced.

Versions: @flydotio/dockerfile@0.7.10, @shopify/cli@4.2.0, Node 24.

Fix: drop --force (the flag is gone, and --config is still valid):

execSync(`shopify app deploy --config ${configFile}`, { stdio: 'inherit' })

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions