Accounts list

Open in

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 list

List all configured accounts in JSON format:

ably accounts list --json

List all configured accounts in formatted JSON output:

ably accounts list --pretty-json

Output

The ably accounts list command displays a list of accounts in the following format:

PropertyDescription
AccountThe account name and ID.
NameThe alias name of the account, if one is configured.
UserThe email address of the logged-in user.
AppsNumber of apps configured for this account.
Current AppThe currently selected app name and ID.

See also

  • Accounts — Explore all ably accounts commands.
  • CLI reference — Full list of available commands.