A command-line tool for building and generating SDKs from OpenAPI specifications.
- Generate language-specific SDKs from OpenAPI specifications
- User-friendly command-line interface using Clap
- Supports both YAML and JSON OpenAPI specifications
cargo install xdk-buildxdk-build [OPTIONS] <COMMAND>Generate a Python SDK from an OpenAPI specification:
xdk-build python --spec <SPEC_FILE> --output <OUTPUT_DIR>Options:
-s, --spec <SPEC_FILE>: Path to the OpenAPI specification file (YAML or JSON)-o, --output <OUTPUT_DIR>: Output directory for the generated SDK (default: "xdk/python")
Example:
xdk-build python --spec api/openapi.yaml --output sdk/pythonxdk-build python --spec api/openapi.yaml --output sdk/pythonxdk-build python --spec api/openapi.json --output sdk/pythonMIT