| Crates.io | oapi-cli |
| lib.rs | oapi-cli |
| version | 0.1.2 |
| created_at | 2025-12-01 17:41:45.447451+00 |
| updated_at | 2025-12-02 09:21:00.421477+00 |
| description | CLI tool for modifying, filtering and pruning OpenAPI specs. |
| homepage | |
| repository | https://github.com/izubkov/oapi-cli |
| max_upload_size | |
| id | 1960176 |
| size | 55,696 |
CLI tool for modifying, filtering and pruning OpenAPI specs. Especially useful when working with large OpenAPI specs, oapi-cli is a command-line tool that filters, prunes, and extracts only the paths and components you need. Ideal for preparing compact specs for AI agents and LLM workflows.
Keeps only paths with a given prefix and removes unused components.
# keep only exact path
oapi-cli filter -i openapi.yaml -o openapi-no-example.yaml --path /api/v1/example
# keep all paths starting with /api/v1/example/
oapi-cli filter -i openapi.yaml -o openapi-no-example.yaml --path "/api/v1/example/*"
cargo build --release