CLI Usage
Command
bash
api-sdk-generator generate [options]Options
--url <url>: load the OpenAPI schema from a remote URL--file <path>: load the OpenAPI schema from a local JSON file--output <path>: target directory for generated files--name <sdkName>: override the generated SDK name--base-url <baseUrl>: override the detected server URL--clean: delete the output directory before writing files--verbose: print debug logs
Validation rules
- exactly one of
--urlor--fileis required --outputis always required--urland--base-urlmust be valid absolute URLs
Exit behavior
0on success1on validation errors, schema errors, or generation failures