Skip to content

Examples

DreamCLI's examples pages are generated at build time from the repo's real source examples via dynamic routes.

  • Source of truth: examples/*.ts
  • Route loader: docs/examples/[slug].paths.ts
  • Data loader: docs/examples/examples.data.ts
  • Generated example source blocks use ts twoslash against local dreamcli source

Each example gets its own searchable page with usage snippets, hover-enabled source, and related API links. Hover stays scoped to the generated example source blocks; guide pages and shell transcripts remain plain docs. This keeps examples and API docs aligned to the same source model without maintaining separate docs mirrors.

Source-Backed Examples

Released under the MIT License.