usage generate sdk
- Usage:
usage generate sdk <FLAGS> - Effect: modifies state
- Source code:
cli/src/cli/generate/sdk.rs
Generate a type-safe SDK from a usage spec
The SDK is a subprocess wrapper: typed arguments, flags, and choices for every command, and a client that builds the argument list and runs the binary.
Flags
-f --file <FILE>— A usage spec file, or a script with a usage shebang; "-" reads stdin-l --language <LANGUAGE>— Target language for the SDKChoices:
typescript,python-o --output <OUTPUT>— Directory to write the SDK into-p --package-name <PACKAGE_NAME>— Override the package/module name (defaults to spec bin name)--spec <SPEC>— The spec itself, as a string, instead of a file-h --help— Print help