Skip to main content

perpetual oauth-client

Manage OAuth clients.

perpetual oauth-client create​

Create a new OAuth client.

perpetual oauth-client create <name> [flags]

Changes: Writes live, outside any changeset. The API cannot stage OAuth clients: no OauthClients* request accepts a changesetId. They are auth-plane management, like login and logout.

Output: With --json, prints its result in the JSON envelope and any error in the error envelope.

Arguments​

ArgumentRequiredDescription
nameRequiredOAuth client name.

Flags​

FlagTypeRequiredDescription
--allowed-grantsstring, repeatableOptionalGrant types, comma-separated or repeated (authorization_code, client_credentials, refresh_token).
--redirect-urisstring, repeatableOptionalRedirect URIs, comma-separated or repeated (required for authorization_code grants).

Also accepts the global flags, including the sign-in flags.

perpetual oauth-client delete​

Delete an OAuth client.

perpetual oauth-client delete <id> [flags]

Changes: Writes live, outside any changeset. The API cannot stage OAuth clients: no OauthClients* request accepts a changesetId. They are auth-plane management, like login and logout.

Output: With --json, prints its result in the JSON envelope and any error in the error envelope.

Arguments​

ArgumentRequiredDescription
idRequiredOAuth client ID.

Flags​

FlagTypeRequiredDescription
--forcebooleanOptionalSkip confirmation prompt (required in non-interactive mode).

Also accepts the global flags, including the sign-in flags.

perpetual oauth-client list​

List OAuth clients.

perpetual oauth-client list [flags]

Changes: Stages nothing.

Output: With --json, prints its result in the JSON envelope and any error in the error envelope.

Flags​

FlagTypeRequiredDescription
--topstringOptionalItems per page (server default 100).
--skipstringOptionalNumber of items to skip.
--allbooleanOptionalFetch every page (1000 items per request).

Also accepts the global flags, including the sign-in flags.


Perpetual CLI 0.5.0