CLI reference: sparkwing run

CLI reference: sparkwing run

Every sparkwing run command, flag, and argument, generated from the CLI's own command registry. All command groups are indexed in cli-reference.md.

sparkwing runSection anchor link

Invoke a pipeline

Runs locally by default, including detached work on the local controller. Explicit user, repository or pipeline routing can select Cloud overflow. --profile is refused.

Burst and overflowSection anchor link

Set route: cloud and profile: NAME in machine run.routing to opt in. Repository defaults.run and pipelines[].run may only restrict routing to local and declare secret names. Machine configuration authorizes untracked source_files. The CLI hosts the Cloud-owned run and streams its logs. Ctrl-C requests cancellation. The default preference is here for 5s, then your registered personal machines for 5s, then Cloud. Other team runners cannot claim burst jobs. Prefer entries accept target and a non-negative hold duration. A controller that is unreachable before intake falls back to a local run and reports it. Authorization failures and a lost intake response remain failures because an accepted run keeps one owner. See local execution for configuration and secret handling.

Publication is one-way run/results/logs with local provenance; a publication failure never changes the local run verdict.

--agent NAME records the coding agent that starts the run on your behalf, such as claude-code:land-agent, and --agent none records none. Without the flag, SPARKWING_AGENT applies, then a detected coding-agent environment (Claude Code, Codex, Gemini CLI). The label is sealed with the request, kept by retries and publication, and shown in run views; it never grants or limits authority.

Cache-from reads only authorized verified-default-branch memo/artifacts/depcache; no shared writes or remote binary fetch.

--sw-output applies to foreground and detached runs; explicit --sw-output beats -o, then SPARKWING_LOG_FORMAT, then terminal detection.

--sw-only keeps matching jobs and their dependencies. Other declared jobs are skipped. Recovery jobs and jobs added by generators retain their normal rules. --sw-start-at and --sw-stop-at select a window in each job containing the named steps. A job containing neither bound runs all its steps. Unknown step names fail before work starts. --sw-only cannot be combined with either step bound. All three selections are sealed at intake and survive resume and retry. Child pipelines resolve their own job and step selections because their jobs and steps have separate names.

--sw-allow-unadmitted selects standalone CI with an exclusive in-process local controller. Give it a private SPARKWING_HOME. Its admission queue and concurrency rules remain active; it does not join shared machine admission. The CLI joins controller shutdown before returning. Detached runs and Cloud routing cannot use this mode.

ArgumentsSection anchor link

  • <pipeline> (required) -- Pipeline name

FlagsSection anchor link

FlagDescription
-o, --output FORMATPretty on a terminal; JSON when piped; explicit format wins. Values: pretty, json, plain.
-C, --checkout PATHResolve the project from this local checkout path.
-h, --helpShow command help without executing.
--help-allInclude uncommon flags in command help.
--publish PROFILECopy this local run's results to the named controller profile.
--agent NAMECoding agent starting this run, such as claude-code:land-agent; none records no agent. Display-only.
--sw-cache-from PROFILERead the authorized remote cache; an empty value disables the machine default.
--sw-pause-before JOBPause before the selected job. Repeatable; comma-separated values are accepted.
--sw-pause-after JOBPause after the selected job. Repeatable; comma-separated values are accepted.
--sw-pause-on-failureKeep failed jobs paused for inspection.
--sw-ref REFBuild the pipeline and run against this Git ref.
--sw-pipeline-ref REFLoad the pipeline from this Git ref.
--sw-detachedSubmit work to the local controller and return before it finishes.
--sw-workers NPositive foreground worker count; refused for detached runs. Must be at least 1.
--sw-idempotency-key KEYDeduplicate detached submissions using this key.
--sw-request-id IDRequest identifier for a detached submission.
--sw-output FORMATFormat for run output. Values: pretty, json, plain.
-v, --sw-verboseInclude detailed run output.
--sw-start-at STEPStart execution at the selected step.
--sw-stop-at STEPStop execution after the selected step.
--sw-only GLOBSelect jobs matching this pattern.
--sw-no-memoExecute jobs without reusing memoized results.
--sw-priority VALUEScheduling priority for this run.
--sw-no-updateSkip automatic updates for this invocation.
--sw-no-bincacheBuild without reusing the local pipeline binary cache.
--sw-hash-all-filesInclude all files when computing the local binary cache key.
--sw-allow-unadmittedUse an exclusive in-process local controller for CI admission.
--sw-dry-runPreview using declared dry-run bodies and steps marked safe.
--sw-allow-risk LABEL[,LABEL...]Authorize the listed pipeline risks. A run narrowed with --sw-only, --sw-start-at or --sw-stop-at needs only the risks of the steps it selects. Repeatable; comma-separated values are accepted.
--sw-index PATHCapture a Git index for local staged-content checks.
--sw-run-handle-file PATHWrite the submitted run handle to this file once at intake; it names the run and does not track its status.