Call any API operation from the CLI
zitadel api calls any operation of the Zitadel API with your project's server and secret, including the ones no command covers yet.
- Name an operation by its
operationId,zitadel api queryUsers, or by its path,zitadel api /users/query.zitadel api lslists them. - Set query parameters and body fields with
-F name=value, typed by the operation's schema, or pass a whole body with--input. - Follow every page with
--paginate, and preview the request as cURL with--dry-run. - With
--json, the response body comes back asdata.
@zitadel/api exports the same operations as data from @zitadel/api/generated/operations: each one's method, path, parameters, authentication and paging.
Pull request#2187