OPENCLI

Contract-First CLI Design

Define your interface. Automate the rest.

OpenCLI is an open document specification for command-line tools. Author verifiable, human-readable CLI definitions. Generate documentation and code deterministically from a single spec.

contract-firstframework-agnosticagent-ready
opencliVersion: 1.0.0-alpha.13

info:
  title: Pleasantries CLI
  summary: A fun CLI to greet the caller
  version: 1.0.0
  binary: greet

commands:
  greet <arguments> [flags]:
    summary: "Say hello"
    args:
      - name: "name"
        required: true
        type: "string"
    flags:
      - name: "language"
        type: "string"
        default: "english"

Contract-First Development

Promote stable command contracts and keep implementation details decoupled from CLI frameworks.

Tooling That Scales

Validate specs, generate docs, and standardize outputs across teams and languages.

Better Agent Understanding

Give LLMs and automation tools a structured, explicit model of your CLI surface area and save tokens in the process.

Are you an AI crawler? Checkout OpenCLI Specification's LLM Metadata