Skip to content

docs: drop the -y flag from the npx install command - #196

Merged
vitorbaptista merged 1 commit into
mainfrom
docs/npx-without-dash-y
Aug 15, 2026
Merged

docs: drop the -y flag from the npx install command#196
vitorbaptista merged 1 commit into
mainfrom
docs/npx-without-dash-y

Conversation

@vitorbaptista

Copy link
Copy Markdown
Owner

Every user-facing surface advertised npx -y shellshare. The flag only suppresses npm's one-time "Ok to proceed?" confirm, and it made the shortest way to try shellshare read like a command with options to understand. npx shellshare is what people type — and what the top-level README already showed — so the site, llms.txt, AGENTS.md and the npm package README now agree with it.

Changed:

  • templates/index.html — the copy-to-clipboard install line, the typed demo, the FAQ named-room example, and the JSON-LD FAQ answer
  • templates/llms.txt and AGENTS.md — the agent-facing install lines (comment column kept aligned)
  • npm/shellshare/README.md — both scripting examples
  • e2e/test_api.py — the home-page assertion matched the literal string, so it moves with the template

Verification

  • make lint clean
  • e2e/test_api.py -k TestInstallOptions passes against a release build
  • An adversarial review found no remaining -y variants anywhere (including .github/, Makefile, src/, package scripts), no other assertion on the old string, and no CSS/JS that depends on the literal command width — the demo's typing animation derives its per-character delay from the actual text length, so the 5s budget is unchanged.

One trade-off, flagged

Without -y, a first run on a machine with a cold npx cache hits npm's Ok to proceed? (y) confirm. That matters most for the piped recipe in npm/shellshare/README.md (tail -f build.log | npx shellshare --json), where the prompt and the piped payload share stdin. Deliberate — the flag is being dropped on purpose — but worth knowing before merging.

🤖 Generated with Claude Code

Every user-facing surface advertised `npx -y shellshare`. The flag only
suppresses npm's one-time "Ok to proceed?" confirm, and it made the
shortest way to try shellshare read like a command with options to
understand. `npx shellshare` is what people type and what the README
already showed, so the site, llms.txt, AGENTS.md and the npm package
README now agree with it.

The home page assertion in the e2e suite moves with the template - it
matched the literal string, so leaving it would have failed.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@vitorbaptista
vitorbaptista merged commit 61ff7c7 into main Aug 15, 2026
8 checks passed
@vitorbaptista
vitorbaptista deleted the docs/npx-without-dash-y branch August 15, 2026 07:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant