macOS
brew install playwright-clilocal Homebrew formula metadata
安装
brew install playwright-clilocal Homebrew formula metadata
概览
CLI for Playwright: record/generate code, inspect selectors, take screenshots
历史
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.
安全态势
没有找到 playwright-cli 的匹配本地密钥处理 manifest。软件包元数据仍在此发布,以便未来覆盖拥有稳定的软件包 URL。
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
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.json可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
playwright-cli | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
安装元数据
| 软件包键 | brew:playwright-cli |
|---|---|
| 版本 | 0.1.23 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/playwright-cli |
| 主页 | https://playwright.dev |
| 上游文档 | https://playwright.dev |
| 许可证 | Apache-2.0 |
| 源码归档 | https://registry.npmjs.org/@playwright/cli/-/cli-0.1.23.tgz |
| 最后更新 | 2026-11-01T18:15:34Z |
| Pulse | updated |
| 依赖 | node |
| Bottle | 可用 (于 all) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| 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 |
|
来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.