OpenCLI.dev
The home of the specification, with guides and a live editor for authoring CLI documents. Its ocli tool validates documents and generates documentation and CLI code.
Try the live editor →The OpenCLI ecosystem
clidoc builds on OpenCLI: an open specification for describing a CLI independently of its implementation language or framework.
The home of the specification, with guides and a live editor for authoring CLI documents. Its ocli tool validates documents and generates documentation and CLI code.
Try the live editor →OpenCLI’s ocli tool generates Go CLI scaffolding for Cobra and urfave/cli from an OpenCLI document. Define the interface in the spec, generate the framework code, then implement your command handlers.
Explore Go support →clidoc brings existing yargs, Commander.js, and oclif commands into the ecosystem. Export an OpenCLI document, validate it, and publish documentation with Docusaurus, VitePress, or Markdown.
Publish your documentation →Whether you start with an OpenCLI document or extract one from an existing CLI, the specification gives tools a common way to describe commands, arguments, and flags.
OpenCLI is evolving. Check the specification version supported by each tool when sharing documents across the ecosystem.
Explore the OpenCLI repository →