From b486dee8ac2469aecd9d0fdb5651666dcb513f17 Mon Sep 17 00:00:00 2001 From: Vladimir Babin Date: Sat, 19 Sep 2026 15:50:29 +0300 Subject: [PATCH] Replace removed --force flag in shopify app deploy with --allow-updates Shopify CLI 4.0 removed the deprecated --force flag from `shopify app deploy`, so flyShopifyConfig aborts Dockerfile generation with "Nonexistent flag: --force" and `fly launch` fails. Use --allow-updates, the replacement Shopify recommends for non-interactive runs. Fixes #151 --- fly.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fly.js b/fly.js index 2a35da9..e5ea134 100755 --- a/fly.js +++ b/fly.js @@ -391,8 +391,8 @@ GDF.extend(class extends GDF { if (original !== config) { console.log(`${chalk.bold.green('update'.padStart(11, ' '))} ${configFile}`) fs.writeFileSync(configFile, config) - console.log(`${chalk.bold.green('execute'.padStart(11))} shopify app deploy --force --config ${configFile}`) - execSync(`shopify app deploy --force --config ${configFile}`, { stdio: 'inherit' }) + console.log(`${chalk.bold.green('execute'.padStart(11))} shopify app deploy --allow-updates --config ${configFile}`) + execSync(`shopify app deploy --allow-updates --config ${configFile}`, { stdio: 'inherit' }) } }