Authentication
Early access
The CLI generator is in early access. Reach out to get started.
Each generated CLI reads authentication credentials from the security schemes declared in your OpenAPI spec. Credentials can come from environment variables, CLI flags, files, or a combination of these through fallback chains.
Without a credential, the CLI still works — you can explore the command tree, view help, and use --dry-run.
Credential sources
The CLI supports several ways to supply credentials, configured at build time.
A typical fallback chain lets the CLI flag override the env var, which in turn overrides a file:
Supported auth schemes
The CLI supports every scheme type that OpenAPI’s securitySchemes defines:
Auth strategies
When a spec declares multiple security schemes, the CLI composes them according to one of these strategies:
Operations that declare security: [] (an empty list) opt out of authentication entirely — no credentials are sent regardless of what’s configured.
Help output
Every generated CLI includes a dynamically rendered Authentication: section in its --help output listing every scheme, the expected env var or flag, and whether a credential is detected.