The CLI is RelGeo’s primary terminal surface.
Use this surface when you want to work from the shell without opening a browser UI.
When The CLI Fits Best
The CLI is best for:
- validating RelGeo documents
- compiling source into JSON, SVG, or graph output
- placing RelGeo inside shell workflows
- running lightweight checks in CI
If you need interactive authoring instead, use the Playground.
Current Surface Shape
In the current active repo snapshot:
- the package surface lives in the
relgeo/clirepository - the CLI follows the active v0.5 language contract
- the healthiest consumption path is still through this monorepo
Core Capabilities
Practically, the CLI already includes:
infofor reading document structurecompilefor generating outputcheckorvalidatefor validation without final output- parameter overrides
- profile selection
- target sheet selection for SVG export
Example Flow
pnpm relgeo info path/to/design.yaml
pnpm relgeo compile path/to/design.yaml
pnpm relgeo compile path/to/design.yaml -f svg -o output.svg
pnpm relgeo check path/to/design.yaml
Important Boundary
The CLI is not an interactive editor.
It is also not a replacement for @relgeo/core when you want direct runtime integration in code.
Use the CLI when your need is:
- automation
- terminal workflow
- compile or validate without UI
Documentation Status
This page is the website-owned entry surface.
The documentation home that sits closer to the package now starts in the CLI repository’s docs/README.md.
Continue Reading
- read Playground if you want interactive authoring
- read Markdown Surfaces if you want markdown embedding
- open the Language Spec when you need the active language contract