{"schemaVersion":1,"id":"playwright-cli","name":"Playwright CLI","locale":"en","canonicalUrl":"https://base.akulich.dev/en/library/playwright-cli/","officialUrl":"https://github.com/microsoft/playwright-cli","isCatalog":false,"description":"Microsoft's official CLI for controlling a browser from the command line and an AI agent: page snapshots, actions using element references, input, navigation, and screenshots. The skill gives the agent a compact way to work with a browser.","tasks":["Reproduce an interface error through a sequence of actions","Test a user workflow in a browser","Capture screenshots and page states for diagnostics"],"categoryIds":["quality","skills"],"subcategoryIds":["quality.testing","quality.responsive","quality.debugging","skills.development"],"tags":["Playwright","CLI","Browser","Testing","Codex"],"aliases":["microsoft/playwright-cli","@playwright/cli"],"platforms":[],"stack":["Node.js","JavaScript","TypeScript"],"compatibility":null,"pricing":"free","freeUsage":"The CLI and included skill are free under Apache 2.0; automation runs in your environment.","paidUsage":"Separate AI model, CI, or cloud browser plans are not included.","license":"Apache 2.0. Installed browser and third-party service licenses apply separately.","selectionGuide":{"purpose":"Reproduce an interface error through a sequence of actions","chooseWhen":["Reproduce an interface error through a sequence of actions","Test a user workflow in a browser","Capture screenshots and page states for diagnostics"],"considerInstead":["When choosing for this topic, compare Playwright CLI with Playwright MCP. A candidate to compare under the topic: Responsive design and browsers, Testing and diagnostics. This is an editorial connection by topic, not a confirmed alternative or a guarantee that the products work together."],"requirements":["The README requires Node.js 18+. Named sessions use -s; --headed provides a visible browser."],"limitations":["Costs and limits of free use: Separate AI model, CI, or cloud browser plans are not included.","Terms of use: Apache 2.0. Installed browser and third-party service licenses apply separately.","This is a separate product from Playwright MCP, with a different repository and CLI interface.","An accessibility tree snapshot does not replace accessibility testing.","The CLI launches a headless browser by default; an individual session's state and a saved profile are different modes that must be selected explicitly."],"faq":[{"question":"What can you use for free in Playwright CLI?","answer":"The CLI and included skill are free under Apache 2.0; automation runs in your environment."},{"question":"What additional costs might arise with Playwright CLI?","answer":"Separate AI model, CI, or cloud browser plans are not included."},{"question":"What terms of use matter for Playwright CLI?","answer":"Apache 2.0. Installed browser and third-party service licenses apply separately."},{"question":"Which environment can you use Playwright CLI in?","answer":"Tech stack: Node.js, JavaScript, TypeScript."},{"question":"How do you get started with Playwright CLI?","answer":"Configure the CLI and skill according to the official README. Open the test page, obtain a snapshot, and perform actions on its elements in sequence. Save a snapshot or screenshot of the problematic state and verify the fix with the same workflow."},{"question":"What should you consider when choosing Playwright CLI?","answer":"The README requires Node.js 18 or newer; check versions and browser support before installation."},{"question":"Does Playwright CLI retain browser state after closing?","answer":"By default, the profile stays in memory: cookies and storage are available during the session but are lost after closing. --persistent saves the profile to disk; state-save/state-load explicitly save and load state."}],"related":[{"id":"microsoft-playwright-mcp","reason":"A candidate to compare under the topic: Responsive design and browsers, Testing and diagnostics. This is an editorial connection by topic, not a confirmed alternative or a guarantee that the products work together."}],"sources":["https://github.com/microsoft/playwright-cli","https://github.com/microsoft/playwright-cli/blob/main/LICENSE","https://raw.githubusercontent.com/microsoft/playwright-cli/HEAD/README.md","https://raw.githubusercontent.com/microsoft/playwright-cli/HEAD/LICENSE"]},"selectionCheckedAt":null,"applicationGuide":{"goal":"Repeat a user workflow and find the point of failure","inputs":["A test page and workflow steps","A compatible Node.js environment and browser"],"steps":["Configure the CLI and skill according to the official README.","Open the test page, obtain a snapshot, and perform actions on its elements in sequence.","Save a snapshot or screenshot of the problematic state and verify the fix with the same workflow."],"checks":["Actions run on the intended test address.","Check the expected state, rather than only whether a click succeeded."]},"sources":["https://github.com/microsoft/playwright-cli","https://github.com/microsoft/playwright-cli/blob/main/LICENSE","https://raw.githubusercontent.com/microsoft/playwright-cli/HEAD/README.md","https://raw.githubusercontent.com/microsoft/playwright-cli/HEAD/LICENSE"],"checkedAt":"2026-10-06","reviewScope":"The purpose and published terms have been reviewed against the cited primary sources. This page does not confirm that the product was run or tested in every environment.","relatedIds":["microsoft-playwright-mcp"],"dataVersion":"cbbe7123b47a5ae80983","type":"CLI and skill for browser automation","kind":"tool","pricingNote":"The CLI runs in your own environment; AI agent costs are not included in the tool's license.","notes":"This is a separate product from Playwright MCP, with a different repository and CLI interface. The README requires Node.js 18 or newer; check versions and browser support before installation. An accessibility tree snapshot does not replace accessibility testing.","labeledSources":[{"url":"https://github.com/microsoft/playwright-cli","label":"Official README and differences from MCP"},{"url":"https://github.com/microsoft/playwright-cli/blob/main/LICENSE","label":"Apache 2.0"},{"url":"https://raw.githubusercontent.com/microsoft/playwright-cli/HEAD/README.md","label":"Official source"},{"url":"https://raw.githubusercontent.com/microsoft/playwright-cli/HEAD/LICENSE","label":"Official source"}],"licenseGuides":[{"id":"apache-2","title":"Apache 2.0 — permissive license with patent terms","scope":null,"summary":"You can use and modify the code in commercial and closed-source projects. When distributing it, retain the license and relevant notices, identify modified files, and include NOTICE if provided. Authors grant a limited patent license for their contributions; it does not grant permission to use trademarks.","url":"https://www.apache.org/licenses/LICENSE-2.0"}],"entryIds":[],"composition":null}