macOS
brew install playwright-clilocal Homebrew formula metadata
brew / rank 1321
CLI for Playwright: record/generate code, inspect selectors, take screenshots. Version 0.1.23 via Homebrew; verified 2026-11-01.
install
brew install playwright-clilocal Homebrew formula metadata
overview
CLI for Playwright: record/generate code, inspect selectors, take screenshots
history
Playwright CLI is Microsoft's command-line browser-automation interface for coding agents. It exposes navigation, interaction, inspection, screenshots, recording, storage, tracing, and code-generation workflows through token-conscious commands and accessibility snapshots.
Microsoft developed Playwright as cross-browser automation software for Chromium, Firefox, and WebKit. The dedicated Playwright CLI later adapted that foundation to coding-agent workflows with compact commands, structured page snapshots, code generation, screenshots, tracing, storage management, and session control.
The CLI and Playwright MCP share browser-automation foundations but expose different interfaces: the CLI favors shell commands and skills, while MCP exposes structured protocol tools and persistent agent integration.
Playwright CLI extends Playwright from test-runner and library workflows into browser automation designed specifically for coding agents. Official installation supports a global command, use through a project's existing Playwright dependency, and optional agent skills.
Its documentation emphasizes token-efficient accessibility snapshots, persistent named sessions, and a dashboard for observing or taking over agent-driven browser sessions.
Initialize a workspace with `playwright-cli install`, open a page, and use snapshot references with commands such as `click`, `fill`, `screenshot`, and `generate-locator`. Named sessions allow multiple independent browser instances.
The CLI automatically reads global and workspace configuration files. Authentication state can be saved to a user-chosen JSON file with `state-save` and restored with `state-load`; official documentation warns that these files contain live authentication tokens and must not be committed.
Playwright CLI represents the packaging of browser automation as an agent-facing command-line primitive. It is notable for combining a conventional executable, workspace-local configuration, installable agent skills, and stateful browser daemons while remaining usable through an existing Playwright dependency.
security posture
No matching local secret-handling manifest was found for playwright-cli. Package metadata is still published here so future coverage has a stable package URL.
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
local files
These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.
Config paths the tool may read or write during local use.
~/.playwright/cli.config.json./.playwright/cli.config.jsonexecutables
| Command | Kind | Exposure | Note |
|---|---|---|---|
playwright-cli | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
install metadata
| Package key | brew:playwright-cli |
|---|---|
| Version | 0.1.23 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/playwright-cli |
| Homepage | https://playwright.dev |
| Upstream docs | https://playwright.dev |
| License | Apache-2.0 |
| Source archive | https://registry.npmjs.org/@playwright/cli/-/cli-0.1.23.tgz |
| Last updated | 2026-11-01T18:15:34Z |
| Pulse | updated |
| Dependencies | node |
| Bottle | available (on all) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | playwright-cli |
| Version Scheme | 0 |
| Revision | 0 |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
source trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.