@apivexa/cli
v0.1.4
Published
> Command-line tool for ApiVexa — generate, analyse, validate, and compare API documentation.
Readme
@apivexa/cli
Command-line tool for ApiVexa — generate, analyse, validate, and compare API documentation.
Part of ApiVexa — AI-powered API User Guide Generator.
Install
npm install -g @apivexa/cliRequires Node.js 20+
Commands
generate — create an API User Guide
apivexa generate openapi.yaml
apivexa generate openapi.json --format html
apivexa generate https://petstore3.swagger.io/api/v3/openapi.jsonOptions
| Flag | Description |
|------|-------------|
| -o, --output <path> | Output file path |
| -f, --format <fmt> | md (default) · html · pdf · docx |
| -l, --language <lang...> | Code example languages (default: all 8) |
| --base-url <url> | Override base URL in code examples |
| --config <path> | Path to apivexa.config.yaml |
Language examples
apivexa generate openapi.yaml --language python
apivexa generate openapi.yaml -l curl javascript python goanalyze — print API intelligence
apivexa analyze openapi.yamlvalidate — validate docs against spec
apivexa validate ./docs/api-guide.md --spec openapi.yamlcompare — diff two API versions
apivexa compare openapi-v1.yaml openapi-v2.yamlConfiguration file
Create apivexa.config.yaml in your project root:
ai:
provider: anthropic
model: claude-opus-5
output:
format: markdown
dir: ./docs
languages:
- curl
- python
- javascriptAI enrichment
Set an API key to enable AI-powered prose generation:
ANTHROPIC_API_KEY=sk-ant-... apivexa generate openapi.yaml
OPENAI_API_KEY=sk-... apivexa generate openapi.yamlWithout a key, ApiVexa generates a complete, structured guide from the OpenAPI spec alone — zero AI calls, zero cost.
