Contract-First Development
Promote stable command contracts and keep implementation details decoupled from CLI frameworks.
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.
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"
Promote stable command contracts and keep implementation details decoupled from CLI frameworks.
Validate specs, generate docs, and standardize outputs across teams and languages.
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