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' })
fly launchaborts when scaffolding a Shopify app.flyShopifyConfiginfly.jsruns:but the
--forceflag was removed fromshopify app deployin 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:Because it throws inside Dockerfile generation, the entire
fly launchfails — nofly.tomlis produced.Versions:
@flydotio/dockerfile@0.7.10,@shopify/cli@4.2.0, Node 24.Fix: drop
--force(the flag is gone, and--configis still valid):