api method stubs and definition metadata, and installs the runtime dependencies the generated files import.
Usage
Examples
Options
| Option | Description | Default |
|---|---|---|
--name | SDK module name. Normalized to kebab-case; a trailing Module is stripped. | sdk |
--module | Target module the SDK is generated from. An api target aggregates every backend module and api module; a microservice target exposes only its own controllers. | app |
--cwd | Working directory the command runs in. | Current directory |
--silent | Suppress spinners and the success message. | false |
type: "sdk" in its <name>.yml, is named @<root-package-scope>/<name>, and is kept out of AppModule and SharedModule.
AI Skill
This command ships a matchingsdk:create skill. It guides generating the SDK module from a target module and then completing the work the generator leaves: replacing the <prefix> placeholder in each endpoint, adding a shared endpoint builder, and filling in the api method bodies. The skill covers HTTP methods via @ooneex/fetcher, server-side streaming and Server-Sent Events via native fetch with a body reader, and WebSocket methods via @ooneex/socket-client, including how to forward bearer tokens on authenticated routes.
- Claude
- Codex