From 7d532dec4c05e4c3e8e33c8e9a4ac4f0972568a6 Mon Sep 17 00:00:00 2001 From: Nayan Date: Tue, 11 Aug 2026 06:01:19 +0530 Subject: [PATCH] docs: correct the CLI reference and add package badges MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Three claims in the CLI reference had drifted from the code: - `--` was documented as a passthrough. It only stops flag scanning (args.ts:329, index.ts:107); nothing reads positionals, so trailing args are ignored, not forwarded. - `?__airship=` was only documented in one direction. resolveMode (proxy.ts:92) takes the internal mode names, so the way back to the canvas is `?__airship=shell` — `canvas` is not a value it accepts. - `--codex-config` was presented as an opaque k=v pair. coerce (backends.ts:23) turns booleans and numbers into TOML scalars, so `network_access=true` sends a boolean; quoting is the escape hatch. Also adds npm, node and license badges, which render on npmjs.com too. --- README.md | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 031ca5e..5bb3ea1 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,9 @@ # Airship +[![npm](https://img.shields.io/npm/v/@airshiplabs/cli)](https://www.npmjs.com/package/@airshiplabs/cli) +[![node](https://img.shields.io/node/v/@airshiplabs/cli)](https://nodejs.org) +[![license](https://img.shields.io/npm/l/@airshiplabs/cli)](LICENSE) + **Visual editor for your codebase.** Airship puts an infinite design canvas in front of your dev server. Select an element, describe @@ -97,7 +101,8 @@ Two ways to look at your app. Same editor either way. Pick one at launch with `airship --mode inline`, or switch any time from the bottom bar. Your choice sticks across reloads and as you click around your app. Add `?__airship=inline` to a URL -to try the other one once, without changing your preference. +to try the other one once, without changing your preference; `?__airship=shell` is the way back +to the canvas — the parameter takes the internal mode name, so it is `shell`, not `canvas`. Open any route of your app in Airship — `/pricing`, `/settings` — and every frame opens there. @@ -200,8 +205,9 @@ airship [options] | `airship doctor` | Check your environment and report what is wrong. | Flags accept `--flag value` and `--flag=value`, a camelCase spelling of any kebab name -(`--maxTurns` ≡ `--max-turns`), and `--no-` to turn any boolean off. Anything after a bare -`--` is passed through untouched. +(`--maxTurns` ≡ `--max-turns`), and `--no-` to turn any boolean off. A bare `--` stops flag +parsing — airship takes no positional arguments, so anything after it is ignored rather than +forwarded. ### Core @@ -244,6 +250,10 @@ Flags accept `--flag value` and `--flag=value`, a camelCase spelling of any keba | `--opencode-agent ` | Run as a named opencode agent. | its own | | `--opencode-config ` | JSON file merged into the opencode server config. | | +`--codex-config` reads the shape of the value: `true`/`false` become TOML booleans and anything +numeric becomes a number, so `--codex-config network_access=true` sends a boolean, not the string. +Quote it — `--codex-config k='"true"'` — to keep a string a string. + ### Global | Flag | |