# nowaki CLI: commands, flags, value names, defaults and possible values, from clap
# (crates/nowaki/src/main.rs). Written by `NOWAKI_UPDATE_SNAPSHOTS=1 cargo test -p nowaki
# --bin nowaki cli_surface` (or `node scripts/api-surface.mjs`); `cargo test` fails when
# it is out of date. The comment after an entry is its help text. Not covered: the text
# of the build report and other output, and the `--version` string.
[stable nowaki]
command dev # Start the dev server
command build # Build for production and emit output for the deploy adapter
command start # Serve a built app in production mode
command prerender # Prerender as a static site (SSG)
command upgrade # Update nowaki (CLI) and @nowaki-dev/runtime to the latest version
command typegen # Generate typed routes (.nowaki/types.d.ts)
command help # Print this message or the help of the given subcommand(s)
--help -h # Print help
--version -V # Print version
[stable nowaki dev]
default=. # App root directory
--port -p # Port to listen on (default: PORT, else 3000)
--host # Address to listen on; `--host` alone listens on all interfaces (0.0.0.0) [default: NOWAKI_HOST, else 127.0.0.1]
--open default=false # Open the default browser after startup
--no-toolbar default=false # Don't load the dev toolbar in the browser (same as NOWAKI_TOOLBAR=0)
--help -h # Print help
[stable nowaki build]
default=. # App root directory
--adapter default=node values=node|static|bun|deno|cloudflare|vercel # Deploy target adapter (node|static|bun|deno|cloudflare|vercel)
--help -h # Print help (see more with '--help')
[stable nowaki start]
default=. # App root directory
--port -p # Port to listen on (default: PORT, else 3000)
--host # Address to listen on; `--host` alone listens on all interfaces (0.0.0.0) [default: NOWAKI_HOST, else 127.0.0.1]
--help -h # Print help
[stable nowaki prerender]
default=. # App root directory
--out -o default=dist/static # Output directory (relative to dir, or absolute)
--skip-build default=false # Render from existing `dist/` (`nowaki build`); skips the transform and content-index steps
--help -h # Print help
[stable nowaki upgrade]
default=. # App root directory
--to # Version or npm dist-tag to update to (default: latest), e.g. --to 1.0.0 or --to next. A version on a newer major first prints a readiness report and installs nothing while it lists something to change
--check default=false # Only print the readiness report for --to (read-only; exits 1 when something must change)
--help -h # Print help
[stable nowaki typegen]
default=. # App root directory
--help -h # Print help