Use the ably init command to set up the Ably CLI in a single step. It installs the CLI, authenticates you with OAuth Device Authorization, and installs the Ably Agent Skills into any AI coding tools detected on your machine.
Supported AI coding tools:
- Claude Code - installed via the
@ably/agent-skillsClaude Code plugin. - Cursor
- VS Code (GitHub Copilot)
- Windsurf
For tools other than Claude Code, the skill files are copied directly into the tool's user skills directory.
Synopsis
ably init [options]You can also run init without installing the CLI first:
npx -p @ably/cli ably initOptions
--target | -t
Target AI coding tools to install Agent Skills for. Defaults to auto, which detects installed tools and prompts you to choose. Repeat the flag to specify multiple tools.
Supported values:
auto- Auto-detect installed tools (default).claude-code- Claude Code.cursor- Cursor.vscode- VS Code (GitHub Copilot).windsurf- Windsurf.
auto cannot be combined with explicit targets.
--json
Output results as compact JSON. Mutually exclusive with --pretty-json.
--pretty-json
Output results in formatted, colorized JSON. Mutually exclusive with --json.
--verbose | -v
Enable verbose logging. Can be combined with --json or --pretty-json.
Examples
Set up the CLI with auto-detected AI coding tools:
ably initInstall Agent Skills for Claude Code only:
ably init --target claude-codeInstall Agent Skills for Cursor and Windsurf:
ably init --target cursor --target windsurfSet up the CLI without installing it first:
npx -p @ably/cli ably initRun init in JSON mode for use in scripts:
ably init --jsonSee also
- Login - Authenticate without installing Agent Skills.
- Environment variables - Authenticate via environment variables instead of OAuth.
- CLI reference - Full list of available commands.