Skip to content

[Docs]: npx playwright cli vs. npx playwright-cli #42426

Description

Page(s)

Description

When a global playwright-cli is not installed, this page (https://playwright.dev/docs/getting-started-cli#installation) recommends using npx playwright-cli (with a hyphen), whereas this README (https://github.com/microsoft/playwright-cli/blob/main/README.md#local-installation) and the corresponding Agent Skill (https://github.com/microsoft/playwright-cli/blob/main/skills/playwright-cli/SKILL.md#installation) recommend using npx playwright cli (without a hyphen). Which one is correct? Could you please update those so that the documentation is consistent?

As a side note, measuring the time of repeated calls to --version, I noticed large differences depending on the command used, as can be seen in the numbers below
Command and mean time:
npx @playwright/cli: 430.4 ms
npx playwright-cli: 169.7 ms
npx playwright cli: 326.1 ms
npx --no-install playwright cli: 324.8 ms
Direct executable: 33.1 ms

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions