From 5ec239edf92b9ffed9156eac6741618291b36ae1 Mon Sep 17 00:00:00 2001 From: Pavel Feldman Date: Thu, 5 Feb 2026 17:22:14 -0800 Subject: [PATCH] chore: update readme for 0.0.64 --- README.md | 43 ++++++++++++++++++++-------------- package-lock.json | 26 ++++++++++---------- package.json | 2 +- scripts/update.js | 4 ++-- skills/playwright-cli/SKILL.md | 2 +- 5 files changed, 42 insertions(+), 35 deletions(-) diff --git a/README.md b/README.md index 26eb69f..99c152f 100644 --- a/README.md +++ b/README.md @@ -32,7 +32,7 @@ playwright-cli --help Claude Code, GitHub Copilot and others will use the locally installed skills. ```bash -playwright-cli install-skills +playwright-cli install --skills ``` ### Skills-less operation @@ -105,13 +105,13 @@ Playwright CLI will use a dedicated persistent profile by default. It means that your cookies and other storage state will be preserved between the calls. You can use different instances of the browser for different projects with sessions. -Following will result in two browsers with separate profiles being available. Pass `--session` to +Following will result in two browsers with separate profiles being available. Pass `-s=` to the invocation to talk to a specific browser. ```bash playwright-cli open https://playwright.dev -playwright-cli --session=example open https://example.com -playwright-cli session-list +playwright-cli -s=example open https://example.com +playwright-cli list ``` You can run your coding agent with the `PLAYWRIGHT_CLI_SESSION` environment variable: @@ -120,16 +120,14 @@ You can run your coding agent with the `PLAYWRIGHT_CLI_SESSION` environment vari PLAYWRIGHT_CLI_SESSION=todo-app claude . ``` -Or instruct it to prepend `--session` to the calls. +Or instruct it to prepend `-s=` to the calls. Manage your sessions as follows: ```bash -playwright-cli session-list # list all sessions -playwright-cli session-stop [name] # stop session -playwright-cli session-restart [name] # restart session -playwright-cli session-stop-all # stop all sessions -playwright-cli session-delete [name] # delete session data along with the profiles +playwright-cli list # list all sessions +playwright-cli close-all # close all browsers +playwright-cli kill-all # forcefully kill all browser processes ``` @@ -152,6 +150,7 @@ playwright-cli upload # upload one or multiple files playwright-cli check # check a checkbox or radio button playwright-cli uncheck # uncheck a checkbox or radio button playwright-cli snapshot # capture page snapshot to obtain element ref +playwright-cli snapshot --filename=f # save snapshot to specific file playwright-cli eval [ref] # evaluate javascript expression on page or element playwright-cli dialog-accept [prompt] # accept a dialog playwright-cli dialog-dismiss # dismiss a dialog @@ -187,7 +186,9 @@ playwright-cli mousewheel # scroll mouse wheel ```bash playwright-cli screenshot [ref] # screenshot of the current page or element +playwright-cli screenshot --filename=f # save screenshot with specific filename playwright-cli pdf # save page as pdf +playwright-cli pdf --filename=page.pdf # save pdf with specific filename ``` ### Tabs @@ -250,8 +251,8 @@ playwright-cli video-stop [filename] # stop video recording ### Install ```bash +playwright-cli install --skills # install skills playwright-cli install-browser # install browser -playwright-cli install-skills # install skills ``` ### Configuration @@ -260,18 +261,22 @@ playwright-cli install-skills # install skills playwright-cli config [options] # configure session settings playwright-cli open --browser=chrome # use specific browser playwright-cli open --extension # connect via browser extension +playwright-cli open --persistent # use persistent profile +playwright-cli open --profile= # use custom profile directory playwright-cli open --config=file.json # use config file +playwright-cli close # close the browser +playwright-cli delete-data # delete user data for default session ``` ### Sessions ```bash -playwright-cli --session=name # run command in named session -playwright-cli session-list # list all sessions -playwright-cli session-stop [name] # stop session -playwright-cli session-restart [name] # restart session -playwright-cli session-stop-all # stop all sessions -playwright-cli session-delete [name] # delete session data and profiles +playwright-cli -s=name # run command in named session +playwright-cli -s=name close # stop a named browser +playwright-cli -s=name delete-data # delete user data for named browser +playwright-cli list # list all sessions +playwright-cli close-all # close all browsers +playwright-cli kill-all # forcefully kill all browser processes ``` @@ -426,7 +431,8 @@ Playwright CLI will load config from `playwright-cli.json` by default so that yo -## Environment +
+Configuration via env | Environment | |-------------| @@ -472,3 +478,4 @@ Playwright CLI will load config from `playwright-cli.json` by default so that yo | `PLAYWRIGHT_MCP_USER_AGENT` specify user agent string | | `PLAYWRIGHT_MCP_USER_DATA_DIR` path to the user data directory. If not specified, a temporary directory will be created. | | `PLAYWRIGHT_MCP_VIEWPORT_SIZE` specify browser viewport size in pixels, for example "1280x720" | +
diff --git a/package-lock.json b/package-lock.json index b7604db..b8b04e2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -5,19 +5,19 @@ "packages": { "": { "devDependencies": { - "@playwright/cli": "^0.0.63" + "@playwright/cli": "^0.0.64" } }, "node_modules/@playwright/cli": { - "version": "0.0.63", - "resolved": "https://registry.npmjs.org/@playwright/cli/-/cli-0.0.63.tgz", - "integrity": "sha512-1Xd9dkQZGIOBkET2sP5vnQNyQRCm8N8IkLYEboQzp6fKpCerXfgonzVP27kpJFczqSSg+YCOo5nDKbi7Srl3yQ==", + "version": "0.0.64", + "resolved": "https://registry.npmjs.org/@playwright/cli/-/cli-0.0.64.tgz", + "integrity": "sha512-rk3yu0gMPTqwe+5eKPNhvkuhBqezg2F5lt4XdPALaDEPdkF+0T/rqrTbT92aOBDbhkm30kdO67lA1HaFoObAVg==", "dev": true, "license": "Apache-2.0", "dependencies": { "minimist": "^1.2.5", - "playwright": "1.59.0-alpha-1770157258000", - "playwright-core": "1.59.0-alpha-1770157258000" + "playwright": "1.59.0-alpha-1770338664000", + "playwright-core": "1.59.0-alpha-1770338664000" }, "bin": { "playwright-cli": "playwright-cli.js" @@ -52,13 +52,13 @@ } }, "node_modules/playwright": { - "version": "1.59.0-alpha-1770157258000", - "resolved": "https://registry.npmjs.org/playwright/-/playwright-1.59.0-alpha-1770157258000.tgz", - "integrity": "sha512-jGMgi+61xaC9Pf7cIalsgKy4g0oAreA8U4/Lr8E0xhYl3pWd/U3F6s/m7GBWxJHHEiQcIdnP3mUdy1FTOyl8SQ==", + "version": "1.59.0-alpha-1770338664000", + "resolved": "https://registry.npmjs.org/playwright/-/playwright-1.59.0-alpha-1770338664000.tgz", + "integrity": "sha512-YKR5ko/eQFtcvlZPTJN3BmVFRrIxuzKw8sqZgP9XY+JvQEDlAsGDNsBd7/TxWLZYzCC8HHETB7cW6Ru2DEkTWA==", "dev": true, "license": "Apache-2.0", "dependencies": { - "playwright-core": "1.59.0-alpha-1770157258000" + "playwright-core": "1.59.0-alpha-1770338664000" }, "bin": { "playwright": "cli.js" @@ -71,9 +71,9 @@ } }, "node_modules/playwright-core": { - "version": "1.59.0-alpha-1770157258000", - "resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.59.0-alpha-1770157258000.tgz", - "integrity": "sha512-D+3ARZYNY7/i6LyV6DKsPQHkzfmuMXMdKdyW981i5CHA4GmXY2NTt1F7cEL4fGYJFpwPqTfQ17Qhas8dnirPkg==", + "version": "1.59.0-alpha-1770338664000", + "resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.59.0-alpha-1770338664000.tgz", + "integrity": "sha512-Qlaafyf5T1GN/ynNJVVdJyD26HjzqvgRC62jNdfaFoMkTvqSlV4of9O6BV7c1x5ZJpplKXHecAPWKSWNdea7Dw==", "dev": true, "license": "Apache-2.0", "bin": { diff --git a/package.json b/package.json index 7c62fc4..5ed1e44 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { "devDependencies": { - "@playwright/cli": "^0.0.63" + "@playwright/cli": "^0.0.64" } } diff --git a/scripts/update.js b/scripts/update.js index cd25953..24763e6 100644 --- a/scripts/update.js +++ b/scripts/update.js @@ -18,8 +18,8 @@ async function main() { console.log(`Installed @playwright/cli version: ${version}`); // 2. Run playwright-cli install-skills - console.log('\n=== Running playwright-cli install-skills ===\n'); - run('npx playwright-cli install-skills'); + console.log('\n=== Running playwright-cli install --skills ===\n'); + run('npx playwright-cli install --skills'); // 3. Move generated skills into the existing skills folder console.log('\n=== Updating skills folder ===\n'); diff --git a/skills/playwright-cli/SKILL.md b/skills/playwright-cli/SKILL.md index cbf8b32..9a4deae 100644 --- a/skills/playwright-cli/SKILL.md +++ b/skills/playwright-cli/SKILL.md @@ -153,8 +153,8 @@ playwright-cli video-stop video.webm ### Install ```bash +playwright-cli install --skills playwright-cli install-browser -playwright-cli install-skills ``` ### Configuration