From 694f8c910b32b26bd82f0d25f9dea35efb4aad6d Mon Sep 17 00:00:00 2001 From: Guilhem Lemouel Date: Thu, 23 Apr 2026 19:03:32 +0200 Subject: [PATCH] refactor(cli): rename wmill dev --no-browser to --no-open Match the pre-existing `wmill app dev --no-open` flag. Having `--no-browser` on one dev command and `--no-open` on the other was just an oversight from my earlier change. All three launch.json templates (init, flow new, sync pull) switch to `--no-open`. Co-Authored-By: Claude Opus 4.7 (1M context) --- cli/src/commands/dev/dev.ts | 6 +++--- cli/src/commands/flow/flow.ts | 2 +- cli/src/commands/init/init.ts | 2 +- cli/src/commands/sync/sync.ts | 2 +- cli/src/guidance/skills.ts | 2 +- system_prompts/auto-generated/cli/cli-commands.md | 2 +- system_prompts/auto-generated/prompts.ts | 2 +- system_prompts/auto-generated/skills/cli-commands/SKILL.md | 2 +- 8 files changed, 10 insertions(+), 10 deletions(-) diff --git a/cli/src/commands/dev/dev.ts b/cli/src/commands/dev/dev.ts index f6785fecdc..e1d6ed00cc 100644 --- a/cli/src/commands/dev/dev.ts +++ b/cli/src/commands/dev/dev.ts @@ -186,7 +186,7 @@ async function listWorkspacePaths(): Promise { export interface DevOpts { proxyPort?: number; path?: string; - browser?: boolean; + open?: boolean; } export async function dev(opts: GlobalOptions & SyncOptions & DevOpts) { @@ -614,7 +614,7 @@ export async function dev(opts: GlobalOptions & SyncOptions & DevOpts) { } function maybeOpenBrowser(url: string) { - if (opts.browser === false) return; + if (opts.open === false) return; try { open.default(url).catch((error) => { console.error( @@ -807,7 +807,7 @@ const command = new Command() "Watch a specific windmill path (e.g., u/admin/my_script or f/my_flow)" ) .option( - "--no-browser", + "--no-open", "Do not open the browser automatically" ) .action(dev as any); diff --git a/cli/src/commands/flow/flow.ts b/cli/src/commands/flow/flow.ts index 3b320d5987..c6cf09d18a 100644 --- a/cli/src/commands/flow/flow.ts +++ b/cli/src/commands/flow/flow.ts @@ -744,7 +744,7 @@ export async function bootstrap( configurations: [{ name: "windmill", runtimeExecutable: "bash", - runtimeArgs: ["-c", "wmill dev --proxy-port ${PORT:-4000} --no-browser"], + runtimeArgs: ["-c", "wmill dev --proxy-port ${PORT:-4000} --no-open"], port: 4000, autoPort: true, }], diff --git a/cli/src/commands/init/init.ts b/cli/src/commands/init/init.ts index 3647604d29..26f42d39f6 100644 --- a/cli/src/commands/init/init.ts +++ b/cli/src/commands/init/init.ts @@ -282,7 +282,7 @@ async function initAction(opts: InitOptions) { configurations: [{ name: "windmill", runtimeExecutable: "bash", - runtimeArgs: ["-c", "wmill dev --proxy-port ${PORT:-4000} --no-browser"], + runtimeArgs: ["-c", "wmill dev --proxy-port ${PORT:-4000} --no-open"], port: 4000, autoPort: true, }], diff --git a/cli/src/commands/sync/sync.ts b/cli/src/commands/sync/sync.ts index cb9792f761..aaee88215b 100644 --- a/cli/src/commands/sync/sync.ts +++ b/cli/src/commands/sync/sync.ts @@ -2489,7 +2489,7 @@ export async function pull( configurations: [{ name: "windmill", runtimeExecutable: "bash", - runtimeArgs: ["-c", "wmill dev --proxy-port ${PORT:-4000}"], + runtimeArgs: ["-c", "wmill dev --proxy-port ${PORT:-4000} --no-open"], port: 4000, autoPort: true, }], diff --git a/cli/src/guidance/skills.ts b/cli/src/guidance/skills.ts index 67f1f20438..78048646d8 100644 --- a/cli/src/guidance/skills.ts +++ b/cli/src/guidance/skills.ts @@ -5335,7 +5335,7 @@ Launch a dev server that watches for local file changes and auto-pushes them to - \`--includes \` - Filter paths givena glob pattern or path - \`--proxy-port \` - Port for a localhost reverse proxy to the remote Windmill server - \`--path \` - Watch a specific windmill path (e.g., u/admin/my_script or f/my_flow) -- \`--no-browser\` - Do not open the browser automatically +- \`--no-open\` - Do not open the browser automatically ### docs diff --git a/system_prompts/auto-generated/cli/cli-commands.md b/system_prompts/auto-generated/cli/cli-commands.md index 15a5ca7a92..d7e49e0a8f 100644 --- a/system_prompts/auto-generated/cli/cli-commands.md +++ b/system_prompts/auto-generated/cli/cli-commands.md @@ -77,7 +77,7 @@ Launch a dev server that watches for local file changes and auto-pushes them to - `--includes ` - Filter paths givena glob pattern or path - `--proxy-port ` - Port for a localhost reverse proxy to the remote Windmill server - `--path ` - Watch a specific windmill path (e.g., u/admin/my_script or f/my_flow) -- `--no-browser` - Do not open the browser automatically +- `--no-open` - Do not open the browser automatically ### docs diff --git a/system_prompts/auto-generated/prompts.ts b/system_prompts/auto-generated/prompts.ts index 3765557abd..90a437ae0b 100644 --- a/system_prompts/auto-generated/prompts.ts +++ b/system_prompts/auto-generated/prompts.ts @@ -1836,7 +1836,7 @@ Launch a dev server that watches for local file changes and auto-pushes them to - \`--includes \` - Filter paths givena glob pattern or path - \`--proxy-port \` - Port for a localhost reverse proxy to the remote Windmill server - \`--path \` - Watch a specific windmill path (e.g., u/admin/my_script or f/my_flow) -- \`--no-browser\` - Do not open the browser automatically +- \`--no-open\` - Do not open the browser automatically ### docs diff --git a/system_prompts/auto-generated/skills/cli-commands/SKILL.md b/system_prompts/auto-generated/skills/cli-commands/SKILL.md index 16e497fa29..bfcfb161d7 100644 --- a/system_prompts/auto-generated/skills/cli-commands/SKILL.md +++ b/system_prompts/auto-generated/skills/cli-commands/SKILL.md @@ -82,7 +82,7 @@ Launch a dev server that watches for local file changes and auto-pushes them to - `--includes ` - Filter paths givena glob pattern or path - `--proxy-port ` - Port for a localhost reverse proxy to the remote Windmill server - `--path ` - Watch a specific windmill path (e.g., u/admin/my_script or f/my_flow) -- `--no-browser` - Do not open the browser automatically +- `--no-open` - Do not open the browser automatically ### docs