Installation
Prebuilt binaries
Prebuilt binaries for Linux, macOS and Windows are attached to each
release. Download the archive for
your platform, unpack it and put api on your PATH.
Cargo
Once the crate is published:
cargo install api-cli
Until then, build from source:
cargo install --git https://github.com/hieudoanm/api api-cli
or clone the repository and build the workspace:
git clone https://github.com/hieudoanm/api
cd api
cargo build --release -p api-cli
./target/release/api --version
Requirements
- Rust 1.85+ (edition 2021 workspace) for building from source
- Any OpenAPI 3.x document — JSON or YAML