Optional ReadonlyaskAsks the questions setu new already accepts as flags.
OPTIONAL by construction: when absent — as in every gate, which reaches the
CLI through an in-process runCli — no prompt is ever attempted and each
absent flag takes its documented default. src/main.ts supplies the
terminal implementation only when stdin is a terminal.
ReadonlycwdThe working directory commands resolve relative paths against (absolute).
ReadonlyerrorWrites a line of error output.
Optional ReadonlyfetchDownloads version-tagged example files; defaults to globalThis.fetch.
Optionalinit: RequestInitOptionalinit: RequestInitReadonlyfsThe filesystem all reads and writes go through.
Optional ReadonlyinterruptCooperative interruption signal supplied by the process boundary.
Optional ReadonlyloadLoads a custom schematic module; defaults to a real dynamic import().
Optional ReadonlyloadLoads the target project's setu.config.ts; defaults to a real dynamic
import(). Only the plugin-command paths use it.
ReadonlylogWrites a line of normal output.
Optional ReadonlylogicalThe shell's logical working directory, when it is absolute and its real path
equals the real path of cwd — the shell's pwd -L rule.
cwd is physical, so from inside a symlinked workspace member it names the
link target and the workspace is invisible. This lets a command notice that
the logical path is a listed member and REFUSE to write through the link; it
never authorizes a write. Omit it when the shell supplies no such path
(Windows, a forged or stale PWD, or a programmatic caller).
ReadonlynowWall-clock milliseconds, for timestamped output.
Optional ReadonlyportChecks whether a workspace port can bind before the CLI assigns it.
Optional ReadonlyrunRuns docker, kind, kubectl and git for setu workspace build|deploy (M122).
Everything the CLI reaches the outside world through.
There is deliberately no default: the process-level values (
process.cwd(),console.log, the host filesystem) belong tosrc/main.ts, the one module that owns the process boundary. A defaultedfshere would let a misconfigured call silently degrade to "no filesystem" at runtime.