Accounts current

Open in

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 current

Display the current account in JSON format:

ably accounts current --json

Display the current account in formatted JSON output:

ably accounts current --pretty-json

Output

The ably accounts current command displays:

PropertyDescription
AccountThe account name and ID.
UserThe email address of the logged-in user.
Apps configuredNumber of apps configured for this account.
Current AppThe currently selected app name and ID.
Current API KeyThe API key being used.
Key LabelThe label of the current API key.

See also

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