Skip to main content
Version: v5.6.1

opschain learn export

Included from Basic tier

Write the embedded learning path (the index, every lesson and guide) to a directory as markdown files, for offline reading:

opschain learn export
exported 80 pages (the learning path embedded in opschain 1.2.3) to /work/demo/opschain-getting-started
FlagMeaning
-o, --output <dir>Directory to write the pages to (created if missing; a relative path resolves against the working directory). Default opschain-getting-started.

Note the local -o/--output names the directory, shadowing the global output-format flag — the command's only output is its summary line, so there is no format to select.

Sample outputs that show a release version are written with this binary's own version (the same substitution every rendered docs surface applies), so an exported set always describes the build that exported it.

Exit codes: 0 on success, 1 when a file cannot be written, 2 for a stray argument.

See also​

  • opschain docs cli/learn — read the lessons in place.
  • opschain docs cli/docs-export — the same escape hatch for the reference pages.