Use the ably accounts list command to list all locally configured Ably accounts.
Synopsis
ably accounts list [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
List all configured accounts:
ably accounts listList all configured accounts in JSON format:
ably accounts list --jsonList all configured accounts in formatted JSON output:
ably accounts list --pretty-jsonOutput
The ably accounts list command displays a list of accounts in the following format:
| Property | Description |
|---|---|
| Account | The account name and ID. |
| Name | The alias name of the account, if one is configured. |
| User | The email address of the logged-in user. |
| Apps | Number of apps configured for this account. |
| Current App | The currently selected app name and ID. |
See also
- Accounts — Explore all
ably accountscommands. - CLI reference — Full list of available commands.