Skip to content

[DX-1479] docs: simplify Ably CLI onboarding to npx @ably/cli init#3453

Merged
umair-ably merged 1 commit into
mainfrom
docs/simplify-cli-npx-init
Jun 30, 2026
Merged

[DX-1479] docs: simplify Ably CLI onboarding to npx @ably/cli init#3453
umair-ably merged 1 commit into
mainfrom
docs/simplify-cli-npx-init

Conversation

@umair-ably

@umair-ably umair-ably commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

What

Replaces the verbose Ably CLI onboarding command npx -p @ably/cli ably init with the simpler one-command form npx @ably/cli init across all docs.

31 files, 32 occurrences — the CLI docs page, the cli/init reference, and every getting-started guide (Pub/Sub, Chat, and Push, across all languages).

Why

@ably/cli previously shipped two binaries (ably and ably-interactive). npm's resolver only auto-selects an executable when a package has a single bin, so npx @ably/cli init failed with "could not determine executable to run" and users had to fall back to the redundant npx -p @ably/cli ably init.

ably/ably-cli#419 made the package single-bin, so npx @ably/cli init now resolves cleanly — matching what people expect from npx (npx neonctl init, etc.).

Ready to merge

The single-bin fix shipped in @ably/cli v1.2.1, now published to npm (latest = 1.2.1, with a single ably bin). npx @ably/cli init resolves against the published version, so this is safe to merge.

Scope note

Pure find-and-replace of a single unambiguous string; no surrounding prose changed (none of the pages explained the -p flag). Verified with git grep that zero verbose forms remain.

🤖 Generated with Claude Code

The CLI previously shipped two bins (`ably` and `ably-interactive`), so npx
could not auto-select an executable and the docs had to use the verbose
`npx -p @ably/cli ably init`. As of @ably/cli v1.2.1 the package is single-bin,
so `npx @ably/cli init` resolves directly. Update all onboarding snippets to
the simpler one-command form.

See ably/ably-cli#419.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Jun 30, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: 9e0f2339-887f-4271-a874-5dcc1afc36a1

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch docs/simplify-cli-npx-init

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@umair-ably umair-ably requested review from AndyTWF and m-hulbert June 30, 2026 16:18
@umair-ably umair-ably changed the title docs: simplify Ably CLI onboarding to npx @ably/cli init [DX-1479] docs: simplify Ably CLI onboarding to npx @ably/cli init Jun 30, 2026
@umair-ably umair-ably merged commit 046ee96 into main Jun 30, 2026
7 checks passed
@umair-ably umair-ably deleted the docs/simplify-cli-npx-init branch June 30, 2026 16:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants