Apps switch

Open in

Use the ably apps switch command to switch to a different Ably application. The selected app is used as the default for subsequent commands.

Synopsis

ably apps switch [app-name-or-id] [options]

Arguments

app-name-or-id

The app name or ID to switch to. If not specified, the CLI will display an interactive prompt to select an app.

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

Switch to an app using the interactive prompt:

ably apps switch

Switch to a specific app by name:

ably apps switch "My App"

Switch to a specific app by ID:

ably apps switch "my-app-id"

See also

  • Apps — Explore all ably apps commands.
  • CLI reference — Full list of available commands.