@ai-native-api/cli
v0.1.0-alpha.0
Published
Compile an OpenAPI 3.0 or 3.1 document into deterministic AI Context Format (ACF) artifacts and a static documentation site.
Downloads
52
Readme
@ai-native-api/cli
Compile an OpenAPI 3.0 or 3.1 document into deterministic AI Context Format (ACF) artifacts and a static documentation site.
Install
npm install --global @ai-native-api/cli@alpha
ai-native-api --versionQuick Start
ai-native-api validate --source .\openapi.yaml
ai-native-api context --source .\openapi.yaml --operation-id createUser --projection compact
ai-native-api build --source .\openapi.yaml --target-directory .\ai-context
ai-native-api docs --source .\openapi.yaml --target-directory .\api-docscontext writes a selected projection to standard output. build writes Full, Compact, and Markdown projections. docs writes the same projections plus a self-contained static site.
The package supports Windows x64 on NTFS. Source descriptions are untrusted data; use the CLI safeguards and source allowlists when compiling untrusted documents.
