[DX-1326] docs: document ably init and use it across getting-started pages#3380
[DX-1326] docs: document ably init and use it across getting-started pages#3380umair-ably wants to merge 1 commit into
Conversation
Add a reference page for the new `ably init` command, link it from the CLI index and platform nav, and replace the two-step install/login snippet across getting-started, chat, and push pages with the single `npx -p @ably/cli init` command. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Tip 💬 Introducing Slack Agent: The best way for teams to turn conversations into code.Slack Agent is built on CodeRabbit's deep understanding of your code, so your team can collaborate across the entire SDLC without losing context.
Built for teams:
One agent for your entire SDLC. Right inside Slack. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
|
||
| | Command | Description | | ||
| | ------- | ----------- | | ||
| | [`ably init`](/docs/cli/init) | Set up the Ably CLI in one command: install, authenticate, and install [Agent Skills](https://github.com/ably/agent-skills) into your AI coding tools | |
There was a problem hiding this comment.
| | [`ably init`](/docs/cli/init) | Set up the Ably CLI in one command: install, authenticate, and install [Agent Skills](https://github.com/ably/agent-skills) into your AI coding tools | | |
| | [`ably init`](/docs/cli/init) | Authenticate `ably-cli` and set up [agent skills]((https://github.com/ably/agent-skills)) using single command | |
There was a problem hiding this comment.
Currenty, only ably init description is multi-line, breaks other table row commands formatting.
You can check deployed commands table vs prod commands table
There was a problem hiding this comment.
Normal ably init command won't do explicit installation.
We already have explicit ably init installation doc under /docs/cli/init using npx, so we should be good with brief one liner description.
There was a problem hiding this comment.
Pull request overview
This PR introduces documentation for the new ably init CLI command and updates multiple getting-started guides to use a single-command CLI setup flow, while also integrating the new command into the CLI reference navigation.
Changes:
- Adds a new CLI reference page for
ably initat/docs/cli/init, including options and examples. - Updates the main Ably CLI docs page to lead with the new one-command setup flow.
- Replaces the existing “install CLI then login” snippets across Pub/Sub, Chat, and Push getting-started pages with the new init-based snippet, and wires the new page into the CLI index + platform nav.
Reviewed changes
Copilot reviewed 33 out of 33 changed files in this pull request and generated 31 comments.
Show a summary per file
| File | Description |
|---|---|
| src/pages/docs/push/getting-started/web.mdx | Updates Push web getting-started CLI setup snippet to use init. |
| src/pages/docs/push/getting-started/react-native.mdx | Updates Push React Native getting-started CLI setup snippet to use init. |
| src/pages/docs/push/getting-started/flutter.mdx | Updates Push Flutter getting-started CLI setup snippet to use init. |
| src/pages/docs/push/getting-started/fcm.mdx | Updates Push FCM getting-started CLI setup snippet to use init. |
| src/pages/docs/push/getting-started/apns.mdx | Updates Push APNs getting-started CLI setup snippet to use init. |
| src/pages/docs/platform/tools/cli.mdx | Revises Ably CLI landing page install/usage sections to introduce ably init. |
| src/pages/docs/getting-started/swift.mdx | Updates Pub/Sub Swift getting-started CLI snippet to use init. |
| src/pages/docs/getting-started/ruby.mdx | Updates Pub/Sub Ruby getting-started CLI snippet to use init. |
| src/pages/docs/getting-started/react.mdx | Updates Pub/Sub React getting-started CLI snippet to use init. |
| src/pages/docs/getting-started/react-native.mdx | Updates Pub/Sub React Native getting-started CLI snippet to use init. |
| src/pages/docs/getting-started/python.mdx | Updates Pub/Sub Python getting-started CLI snippet to use init. |
| src/pages/docs/getting-started/php.mdx | Updates Pub/Sub PHP getting-started CLI snippet to use init. |
| src/pages/docs/getting-started/objective-c.mdx | Updates Pub/Sub Objective-C getting-started CLI snippet to use init. |
| src/pages/docs/getting-started/node.mdx | Updates Pub/Sub Node.js getting-started CLI snippet to use init. |
| src/pages/docs/getting-started/nextjs.mdx | Updates Pub/Sub Next.js getting-started CLI snippet to use init. |
| src/pages/docs/getting-started/laravel.mdx | Updates Pub/Sub Laravel getting-started CLI snippet to use init. |
| src/pages/docs/getting-started/kotlin.mdx | Updates Pub/Sub Kotlin getting-started CLI snippet to use init. |
| src/pages/docs/getting-started/javascript.mdx | Updates Pub/Sub JavaScript getting-started CLI snippet to use init. |
| src/pages/docs/getting-started/java.mdx | Updates Pub/Sub Java getting-started CLI snippet to use init. |
| src/pages/docs/getting-started/go.mdx | Updates Pub/Sub Go getting-started CLI snippet to use init. |
| src/pages/docs/getting-started/flutter.mdx | Updates Pub/Sub Flutter getting-started CLI snippet to use init. |
| src/pages/docs/getting-started/dotnet.mdx | Updates Pub/Sub .NET getting-started CLI snippet to use init. |
| src/pages/docs/cli/init.mdx | Adds the new ably init CLI reference page (synopsis/options/examples). |
| src/pages/docs/cli/index.mdx | Adds ably init to the CLI commands index table. |
| src/pages/docs/chat/getting-started/swift.mdx | Updates Chat Swift getting-started CLI snippet to use init. |
| src/pages/docs/chat/getting-started/swift-async-sequence.mdx | Updates Chat Swift AsyncSequence getting-started CLI snippet to use init. |
| src/pages/docs/chat/getting-started/react.mdx | Updates Chat React getting-started CLI snippet to use init. |
| src/pages/docs/chat/getting-started/react-ui-kit.mdx | Updates Chat React UI Kit getting-started CLI snippet to use init. |
| src/pages/docs/chat/getting-started/react-native.mdx | Updates Chat React Native getting-started CLI snippet to use init. |
| src/pages/docs/chat/getting-started/jvm.mdx | Updates Chat JVM getting-started CLI snippet to use init. |
| src/pages/docs/chat/getting-started/javascript.mdx | Updates Chat JavaScript getting-started CLI snippet to use init. |
| src/pages/docs/chat/getting-started/android.mdx | Updates Chat Android getting-started CLI snippet to use init. |
| src/data/nav/platform.ts | Adds /docs/cli/init to the platform navigation under Ably CLI Reference. |
Comments suppressed due to low confidence (1)
src/pages/docs/cli/init.mdx:92
npx -p @ably/cli initis likely incorrect: with-p,npxwill try to run an executable namedinit, but the Ably CLI executable isably. Usenpx @ably/cli initornpx -p @ably/cli ably initinstead.
npx -p @ably/cli init
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| <Code> | ||
| ```shell | ||
| npm install -g @ably/cli | ||
| npx -p @ably/cli init |
|
|
||
| <Code> | ||
| ```shell | ||
| npx -p @ably/cli init |
| <Code> | ||
| ```shell | ||
| ably login | ||
| npx -p @ably/cli init |
| <Code> | ||
| ```shell | ||
| ably login | ||
| npx -p @ably/cli init |
| <Code> | ||
| ```shell | ||
| ably login | ||
| npx -p @ably/cli init |
| <Code> | ||
| ```shell | ||
| ably login | ||
| npx -p @ably/cli init |
| <Code> | ||
| ```shell | ||
| ably login | ||
| npx -p @ably/cli init |
| <Code> | ||
| ```shell | ||
| ably login | ||
| npx -p @ably/cli init |
| <Code> | ||
| ```shell | ||
| ably login | ||
| npx -p @ably/cli init |
| <Code> | ||
| ```shell | ||
| ably login | ||
| npx -p @ably/cli init |
Summary
/docs/cli/initfor theably initcommand, covering synopsis, options (--target,--json,--pretty-json,--verbose), examples, and supported AI coding tools (Claude Code, Cursor, VS Code, Windsurf).ably login" snippet across all getting-started pages (core, chat, push) with the singlenpx -p @ably/cli initcommand./docs/platform/tools/clito lead with the one-command install and explain whatably initdoes end-to-end.Test plan
yarn developand confirm/docs/cli/initrenders, appears in the platform nav, and is linked from the CLI index table./docs/platform/tools/clireads cleanly with the new lead-in and the alternativenpm install -g @ably/cliblock.🤖 Generated with Claude Code