CLI reference: sparkwing pipeline

CLI reference: sparkwing pipeline

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

sparkwing pipelineSection anchor link

This repo's pipelines

SubcommandsSection anchor link

  • describe -- Print one pipeline's full metadata
  • hooks -- Install / uninstall git pre-commit + pre-push + post-commit hooks
  • lint -- Check pipeline source for idiomatic anti-patterns (enforced gate)
  • list -- Enumerate every pipeline with metadata
  • new -- Scaffold a new Go or TypeScript pipeline
  • plan -- Render the runtime-resolved DAG without dispatching any jobs
  • sparks -- Manage sparks libraries declared in .sparkwing/sparkwing.yaml
  • trigger -- Submit a pipeline run to a controller

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.

sparkwing pipeline describeSection anchor link

Print one pipeline's full metadata

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.
--pipeline NAMEPipeline name. (required)
--secretsPrint only the secrets the pipeline declares, each marked required or optional.

sparkwing pipeline hooksSection anchor link

Install / uninstall git pre-commit + pre-push + post-commit hooks

SubcommandsSection anchor link

  • install -- Install pre-commit / pre-push / post-commit git hooks from sparkwing.yaml triggers
  • status -- Report declared, installed, and missing sparkwing hooks
  • uninstall -- Remove sparkwing-managed git hooks

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.

sparkwing pipeline hooks installSection anchor link

Install pre-commit / pre-push / post-commit git hooks from sparkwing.yaml triggers

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.

sparkwing pipeline hooks statusSection anchor link

Report declared, installed, and missing sparkwing hooks

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.

sparkwing pipeline hooks uninstallSection anchor link

Remove sparkwing-managed git hooks

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.

sparkwing pipeline lintSection anchor link

Check pipeline source for idiomatic anti-patterns (enforced gate)

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.
--pipeline NAMEPipeline name.
--rulesPrint the lint rules with what each forbids and why, without analyzing any source.
--dir DIRAnalyze Go pipeline source in this directory instead of .sparkwing/jobs, or .sparkwing when there is no jobs directory.

sparkwing pipeline listSection anchor link

Enumerate every pipeline with metadata

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.
--allInclude entries that are hidden by default.
--search TEXTText to match against record names and summaries; log text is not searched.

sparkwing pipeline newSection anchor link

Scaffold a new Go or TypeScript pipeline

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.
--pipeline NAMEPipeline name. (required)
--template SHAPEGo shape to scaffold, minimal by default; typescript creates a minimal TypeScript pipeline.
--on EVENTTrigger events to declare, comma separated, replacing the shape's default trigger; manual declares no trigger.
--hiddenMark the new pipeline hidden in sparkwing.yaml so pipeline list omits it unless --all is given.
--short TEXTOne-line description to write into the generated pipeline source instead of a placeholder.

sparkwing pipeline planSection anchor link

Render the runtime-resolved DAG without dispatching any jobs

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.
--pipeline NAMEPipeline name. (required)
--start-at STEPPreview the run as if it started at this step, marking steps that are neither this step nor downstream of it as skipped.
--stop-at STEPPreview the run as if it stopped after this step, marking steps that are neither this step nor upstream of it as skipped.

sparkwing pipeline sparksSection anchor link

Manage sparks libraries declared in .sparkwing/sparkwing.yaml

SubcommandsSection anchor link

  • add -- Add a library to the sparks: block
  • catalog -- List the blocks a spark library offers
  • inflate -- Copy a spark library's source into this repo so you can edit it
  • lint -- Validate a spark.json library manifest
  • list -- Show declared sparks libraries and their resolved versions
  • remove -- Remove a library from the sparks: block
  • update -- Re-resolve every declared library

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.

sparkwing pipeline sparks addSection anchor link

Add a library to the sparks: block

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.
--source PATHGo module path of the spark library to add to the project's spark list. (required)
--version VERVersion of the library to declare, latest by default.
--spark NAMEName to record for the library, the last element of --source by default.

sparkwing pipeline sparks catalogSection anchor link

List the blocks a spark library offers

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.
--library MODULEFull Go module path of the library whose blocks to list, sparks-core by default, at the version the project declares or latest.
--path DIRPath to select.

sparkwing pipeline sparks inflateSection anchor link

Copy a spark library's source into this repo so you can edit it

Copy one library module into the project and replace its dependency with that local source. JSON emits the module, version, destination and replacement; plain emits the destination.

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.
--library MODULEA sparks-core module name or full Go module path; list choices with pipeline sparks catalog. (required)

sparkwing pipeline sparks lintSection anchor link

Validate a spark.json library manifest

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.
--path PATHPath to select.

sparkwing pipeline sparks listSection anchor link

Show declared sparks libraries and their resolved versions

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.
--no-resolveShow declared versions only, skipping the module lookup that resolves each to a concrete version.

sparkwing pipeline sparks removeSection anchor link

Remove a library from the sparks: block

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.
--spark NAMEName or source module path of the library to remove from the project's spark list. (required)

sparkwing pipeline sparks updateSection anchor link

Re-resolve every declared library

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.

sparkwing pipeline triggerSection anchor link

Submit a pipeline run to a controller

Flags including --profile may precede the verb; unknown engine flags before -- are usage errors.

--resume reattaches only a here run; --runner must be absent or here. The existing sealed spec is authoritative; reject new args, reason, agent, source flags and detach on resume.

Without --resume, one pipeline positional is required. Runner accepts here, cloud, a runner name, or label=.

--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.

Against Sparkwing Cloud, a run without --runner executes on Cloud unless a repository pool route rule requires a pool, which keeps it on that pool's self-hosted runners. cloud keeps it on Cloud, a runner name or label= keeps it on matching self-hosted runners, and here hosts it in this CLI.

ArgumentsSection anchor link

  • <pipeline> (optional) -- 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.
--profile NAMEController connection profile from your config. Must be supplied explicitly. (required)
--detachReturn once the controller accepts the run instead of following its logs to the end; refused with --runner here.
--working-treeRun an uploaded snapshot of this checkout, with uncommitted edits, deletions and untracked files that .gitignore does not exclude, instead of a pushed commit; the upload is refused if it holds secret-shaped files or values, submodules, unsafe symlinks, more than 100,000 files or more than 500 MiB.
--allow-secret-file PATHInclude this repository-relative file in a --working-tree snapshot even though its name or content looks like a secret; the trigger fails if no snapshot file has that path, the secret-value scan still applies, and it is refused without --working-tree. Repeatable; comma-separated values are accepted.
--runner RUNNERWhere the run executes: here in this CLI, cloud on Sparkwing Cloud, a self-hosted runner by name, or matching self-hosted runners with label=; without it, the team's routing decides.
--reason TEXTText the run records to explain why it ran in this CLI; required with --runner here and refused with any other runner.
--agent NAMECoding agent starting this run, such as claude-code:land-agent; none records no agent. Display-only.
--resume RUNHost an interrupted --runner here run again in this CLI, using the credential this machine saved and the run's original pipeline and arguments.
--ref REFGit revision of this checkout to run, resolved locally, HEAD by default.
--pipeline-ref REFGit revision to load the pipeline definitions from when it differs from the revision being run; it must match any source pin in the repository's configuration.