Skip to content
Cloud
Docs

OAuth CLI reference

Source: @socra/oauth-cli@0.0.6.

This reference includes every command, argument, and option declared by this released package. Defaults and accepted values are included where the package declares them. Command-specific validation and permissions also apply; see the API reference for resource contracts.

Use socra oauth --help, or append --help to any command, to inspect the locally installed version.

socra oauth

Manage OAuth configuration and client registrations

CommandPurpose
socra oauth configManage project-level OAuth branding and consent configuration
socra oauth clientManage OAuth client registrations
socra oauth client-secretManage OAuth client secrets
socra oauth installationManage admin consent and application installations in the current Account
socra oauth tokenExchange client credentials for an installation token

socra oauth config

Manage project-level OAuth branding and consent configuration

CommandPurpose
socra oauth config setUpdate OAuth configuration for a project
socra oauth config getGet OAuth configuration for a project

socra oauth config set

Update OAuth configuration for a project

Text
socra oauth config set <project> [options]

Arguments

ArgumentRequiredDescription
projectYesProject id, e.g. proj_...

Options

OptionInputDescription
--nameValueApplication display name
--support-emailValueUser support email
--audienceValueinternal or external
--domainsValueComma-separated authorized domains

socra oauth config get

Get OAuth configuration for a project

Text
socra oauth config get <project>

Arguments

ArgumentRequiredDescription
projectYesProject id

socra oauth client

Manage OAuth client registrations

CommandPurpose
socra oauth client createCreate an OAuth client
socra oauth client getGet an OAuth client
socra oauth client listList OAuth clients for a project
socra oauth client updateUpdate an OAuth client
socra oauth client deleteDelete an OAuth client

socra oauth client create

Create an OAuth client

Text
socra oauth client create <name> [options]

Arguments

ArgumentRequiredDescription
nameYesClient display name

Options

OptionInputDescription
--projectValueOwning project id
--typeValueweb, spa, or native
--redirect-urisValueComma-separated redirect URIs
--javascript-originsValueComma-separated JavaScript origins

socra oauth client get

Get an OAuth client

Text
socra oauth client get <id> [options]

Arguments

ArgumentRequiredDescription
idYesClient id

Options

OptionInputDescription
--projectValueOwning project id

socra oauth client list

List OAuth clients for a project

Text
socra oauth client list [options]

Options

OptionInputDescription
--projectValueOwning project id

socra oauth client update

Update an OAuth client

Text
socra oauth client update <id> [options]

Arguments

ArgumentRequiredDescription
idYesClient id

Options

OptionInputDescription
--projectValueOwning project id
--nameValueClient display name
--statusValueactive or suspended
--redirect-urisValueComma-separated redirect URIs
--javascript-originsValueComma-separated JavaScript origins

socra oauth client delete

Delete an OAuth client

Text
socra oauth client delete <id> [options]

Arguments

ArgumentRequiredDescription
idYesClient id

Options

OptionInputDescription
--projectValueOwning project id

socra oauth client-secret

Manage OAuth client secrets

CommandPurpose
socra oauth client-secret createCreate a client secret; plaintext is shown only once
socra oauth client-secret listList active secrets for a client
socra oauth client-secret deleteRevoke a client secret

socra oauth client-secret create

Create a client secret; plaintext is shown only once

Text
socra oauth client-secret create <client> [options]

Arguments

ArgumentRequiredDescription
clientYesClient id

Options

OptionInputDescription
--projectValueOwning project id

socra oauth client-secret list

List active secrets for a client

Text
socra oauth client-secret list <client> [options]

Arguments

ArgumentRequiredDescription
clientYesClient id

Options

OptionInputDescription
--projectValueOwning project id

socra oauth client-secret delete

Revoke a client secret

Text
socra oauth client-secret delete <client> <id> [options]

Arguments

ArgumentRequiredDescription
clientYesClient id
idYesClient secret id

Options

OptionInputDescription
--projectValueOwning project id

socra oauth installation

Manage admin consent and application installations in the current Account

CommandPurpose
socra oauth installation createAs Account owner, consent to the project and its requested scopes
socra oauth installation getGet an installation
socra oauth installation listList installations
socra oauth installation deleteRevoke installation consent and its principal

socra oauth installation create

As Account owner, consent to the project and its requested scopes

Text
socra oauth installation create [options]

Options

OptionInputDescription
--projectValueApplication project id
--scopesValueOptional comma-separated scopes to approve

socra oauth installation get

Get an installation

Text
socra oauth installation get <id>

Arguments

ArgumentRequiredDescription
idYesInstallation id

socra oauth installation list

List installations

Text
socra oauth installation list [options]

Options

OptionInputDescription
--afterValueContinue after this installation id

socra oauth installation delete

Revoke installation consent and its principal

Text
socra oauth installation delete <id>

Arguments

ArgumentRequiredDescription
idYesInstallation id

socra oauth token

Exchange client credentials for an installation token

CommandPurpose
socra oauth token createMint a short-lived installation token; prints the token response

socra oauth token create

Mint a short-lived installation token; prints the token response

Text
socra oauth token create [options]

Options

OptionInputDescription
--clientValueConfidential OAuth client id
--principalValueInstallation principal id
--client-secret-fileValueRead client secret from this file
--scopeValueSpace-separated subset of consented scopes (defaults to all)

Next step

Return to the OAuth overview.