Skip to content

docs(agent-cli): require playwright 1.59+ for the project-local CLI - #2184

Closed
Toto Leung (chintoleung) wants to merge 1 commit into
microsoft:mainfrom
chintoleung:docs-cli-159-floor
Closed

Toto Leung (chintoleung) wants to merge 1 commit into
microsoft:mainfrom
chintoleung:docs-cli-159-floor

Conversation

@chintoleung

Copy link
Copy Markdown

Summary

  • The installation page pairs the local --version check with npx playwright cli --help.
    Both mislead on Playwright ≤1.58: --version passes, and cli --help prints the root
    help with exit 0 — the cli subcommand first works in 1.59.
  • Scope the sentence to the playwright package (directly or through @playwright/test;
    a playwright-core-only project has no playwright bin), state the 1.59 minimum, make
    npx --no-install playwright cli list the deciding probe, route both failure branches to
    the global install, and keep --no-install on project-local invocations.
  • On 1.60 and newer the local cli --help lists the commands the installed version supports.
  • Companion PRs: microsoft/playwright
    (docs(cli): require playwright 1.59+ for the local cli fallback in the skill playwright#44032), microsoft/playwright-cli
    (docs(readme): require playwright 1.59+ for the local cli fallback playwright-cli#532).

Validation

Same matrix as microsoft/playwright#44031; tested on macOS only
(27.0.1, Node 24.21.0, npm 11.19.0), not tested on Windows. cli list started no
browser/daemon and created no .playwright/. npm run build-nodejs passes on this branch.

Refs microsoft/playwright#44031

@chintoleung

Copy link
Copy Markdown
Author

@microsoft-github-policy-service agree

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