Auth keys current

Open in

Use the ably auth keys current command to show the current API key for the selected app.

Synopsis

ably auth keys current [options]

Options

--app

The app ID to show the current key for. Uses the currently selected app if not specified.

--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

Show the current API key:

ably auth keys current

Show the current key for a specific app:

ably auth keys current --app "aBcDeF"

Show the current API key in JSON format:

ably auth keys current --json

Show the current API key in formatted JSON output:

ably auth keys current --pretty-json

See also

  • Auth — Explore all ably auth commands.
  • CLI reference — Full list of available commands.