Use the ably accounts current command to show details of the currently active Ably account.
Synopsis
ably accounts current [options]Options
--json
Output results as compact JSON. Mutually exclusive with --pretty-json.
--pretty-json
Output results in formatted JSON. Mutually exclusive with --json.
--verbose | -v
Enable verbose logging. Can be combined with --json or --pretty-json.
Examples
Display the current account:
ably accounts currentDisplay the current account in JSON format:
ably accounts current --jsonDisplay the current account in formatted JSON output:
ably accounts current --pretty-jsonOutput
The ably accounts current command displays:
| Property | Description |
|---|---|
| Account | The account name and ID. |
| User | The email address of the logged-in user. |
| Apps configured | Number of apps configured for this account. |
| Current App | The currently selected app name and ID. |
| Current API Key | The API key being used. |
| Key Label | The label of the current API key. |
See also
- Accounts — Explore all
ably accountscommands. - CLI reference — Full list of available commands.