Auth

Open in

Use the ably auth command group to manage authentication, API keys, and tokens. These commands enable you to issue and revoke tokens, and manage API keys for your apps.

Token management commands

Use the following commands to issue and revoke Ably tokens and JWTs. Tokens provide short-lived, scopeable access for client-side authentication:

CommandDescription
ably auth issue-ably-tokenCreate an Ably Token with specified capabilities.
ably auth issue-jwt-tokenCreate an Ably JWT token with specified capabilities.
ably auth revoke-tokenRevoke Ably tokens by client ID or revocation key.

Key management commands

Use the following commands to manage API keys for your Ably apps. API keys control access to your account's resources through configurable capabilities such as publish, subscribe, and history:

CommandDescription
ably auth keys createCreate a new API key for an app.
ably auth keys currentShow the current API key for the selected app.
ably auth keys getGet details for a specific API key.
ably auth keys listList all API keys for an app.
ably auth keys revokePermanently revoke an API key.
ably auth keys switchSwitch to a different API key for the current app.
ably auth keys updateUpdate an API key's properties.

See also