CLI reference: sparkwing docs

CLI reference: sparkwing docs

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

sparkwing docsSection anchor link

Embedded user docs (offline)

SubcommandsSection anchor link

  • list -- Enumerate every doc topic
  • migrations -- Per-version migration guides (agent-friendly)
  • read -- Read one document
  • search -- Find the section that answers a question

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 docs listSection anchor link

Enumerate every doc topic

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.
--guidesList the embedded reading guides and the topics each covers instead of topic pages.
--versionsList the docs versions embedded in this CLI, adding the ones published on sparkwing.dev with --web.
--search TEXTText to match against record names and summaries; log text is not searched.
--limit NMaximum number of records to print, at least one. Continue with --cursor when more exist.
--cursor CURSORContinue from next_cursor using the same filters.
--webList topics from sparkwing.dev for the selected version instead of the docs embedded in this CLI.
--version vX.Y.ZDocs version to list; without --web it must match this CLI's embedded version or latest.
--no-cacheFetch from sparkwing.dev without using the local docs web cache; has no effect without --web.

sparkwing docs migrationsSection anchor link

Per-version migration guides (agent-friendly)

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.
--version vX.Y.ZPrint the migration guide for this one release.
--from vX.Y.ZCombine every migration guide released after this version, from the beginning by default.
--to vA.B.CCombine every migration guide up to and including this version, the newest by default.
--webRead migration guides from sparkwing.dev instead of the copies embedded in this CLI.
--no-cacheFetch from sparkwing.dev without using the local docs web cache; has no effect without --web.

sparkwing docs readSection anchor link

Read one document

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.
--fullRead the full documentation topic.
--section START_LINEFirst line of the documentation section.
--topic NAMEDocumentation topic.
--guide NAMERead this embedded guide instead of a topic; cannot be combined with --topic, --web, --version or --no-cache.
--webRead the topic from sparkwing.dev instead of the copy embedded in this CLI.
--version vX.Y.ZDocs version to read; without --web it must match this CLI's embedded version or latest.
--no-cacheFetch from sparkwing.dev without using the local docs web cache; has no effect without --web.

Find the section that answers a question

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.
--limit NMaximum number of records to print, at least one. Continue with --cursor when more exist.
--cursor CURSORContinue from next_cursor using the same filters.
--search TEXTText to match against record names and summaries; log text is not searched.
--bodyInclude document bodies in search results.
--topicsReturn matching topic pages instead of individual section hits.