@playwright/cli 0.0.63 → 0.0.65

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +25 -18
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -32,7 +32,7 @@ playwright-cli --help
32
32
  Claude Code, GitHub Copilot and others will use the locally installed skills.
33
33
 
34
34
  ```bash
35
- playwright-cli install-skills
35
+ playwright-cli install --skills
36
36
  ```
37
37
 
38
38
  ### Skills-less operation
@@ -105,13 +105,13 @@ Playwright CLI will use a dedicated persistent profile by default. It means that
105
105
  your cookies and other storage state will be preserved between the calls. You can use different
106
106
  instances of the browser for different projects with sessions.
107
107
 
108
- Following will result in two browsers with separate profiles being available. Pass `--session` to
108
+ Following will result in two browsers with separate profiles being available. Pass `-s=` to
109
109
  the invocation to talk to a specific browser.
110
110
 
111
111
  ```bash
112
112
  playwright-cli open https://playwright.dev
113
- playwright-cli --session=example open https://example.com
114
- playwright-cli session-list
113
+ playwright-cli -s=example open https://example.com
114
+ playwright-cli list
115
115
  ```
116
116
 
117
117
  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
120
120
  PLAYWRIGHT_CLI_SESSION=todo-app claude .
121
121
  ```
122
122
 
123
- Or instruct it to prepend `--session` to the calls.
123
+ Or instruct it to prepend `-s=` to the calls.
124
124
 
125
125
  Manage your sessions as follows:
126
126
 
127
127
  ```bash
128
- playwright-cli session-list # list all sessions
129
- playwright-cli session-stop [name] # stop session
130
- playwright-cli session-restart [name] # restart session
131
- playwright-cli session-stop-all # stop all sessions
132
- playwright-cli session-delete [name] # delete session data along with the profiles
128
+ playwright-cli list # list all sessions
129
+ playwright-cli close-all # close all browsers
130
+ playwright-cli kill-all # forcefully kill all browser processes
133
131
  ```
134
132
 
135
133
  <!-- BEGIN GENERATED CLI HELP -->
@@ -152,6 +150,7 @@ playwright-cli upload <file> # upload one or multiple files
152
150
  playwright-cli check <ref> # check a checkbox or radio button
153
151
  playwright-cli uncheck <ref> # uncheck a checkbox or radio button
154
152
  playwright-cli snapshot # capture page snapshot to obtain element ref
153
+ playwright-cli snapshot --filename=f # save snapshot to specific file
155
154
  playwright-cli eval <func> [ref] # evaluate javascript expression on page or element
156
155
  playwright-cli dialog-accept [prompt] # accept a dialog
157
156
  playwright-cli dialog-dismiss # dismiss a dialog
@@ -187,7 +186,9 @@ playwright-cli mousewheel <dx> <dy> # scroll mouse wheel
187
186
 
188
187
  ```bash
189
188
  playwright-cli screenshot [ref] # screenshot of the current page or element
189
+ playwright-cli screenshot --filename=f # save screenshot with specific filename
190
190
  playwright-cli pdf # save page as pdf
191
+ playwright-cli pdf --filename=page.pdf # save pdf with specific filename
191
192
  ```
192
193
 
193
194
  ### Tabs
@@ -250,8 +251,8 @@ playwright-cli video-stop [filename] # stop video recording
250
251
  ### Install
251
252
 
252
253
  ```bash
254
+ playwright-cli install --skills # install skills
253
255
  playwright-cli install-browser # install browser
254
- playwright-cli install-skills # install skills
255
256
  ```
256
257
 
257
258
  ### Configuration
@@ -260,18 +261,22 @@ playwright-cli install-skills # install skills
260
261
  playwright-cli config [options] # configure session settings
261
262
  playwright-cli open --browser=chrome # use specific browser
262
263
  playwright-cli open --extension # connect via browser extension
264
+ playwright-cli open --persistent # use persistent profile
265
+ playwright-cli open --profile=<path> # use custom profile directory
263
266
  playwright-cli open --config=file.json # use config file
267
+ playwright-cli close # close the browser
268
+ playwright-cli delete-data # delete user data for default session
264
269
  ```
265
270
 
266
271
  ### Sessions
267
272
 
268
273
  ```bash
269
- playwright-cli --session=name <cmd> # run command in named session
270
- playwright-cli session-list # list all sessions
271
- playwright-cli session-stop [name] # stop session
272
- playwright-cli session-restart [name] # restart session
273
- playwright-cli session-stop-all # stop all sessions
274
- playwright-cli session-delete [name] # delete session data and profiles
274
+ playwright-cli -s=name <cmd> # run command in named session
275
+ playwright-cli -s=name close # stop a named browser
276
+ playwright-cli -s=name delete-data # delete user data for named browser
277
+ playwright-cli list # list all sessions
278
+ playwright-cli close-all # close all browsers
279
+ playwright-cli kill-all # forcefully kill all browser processes
275
280
  ```
276
281
  <!-- END GENERATED CLI HELP -->
277
282
 
@@ -426,7 +431,8 @@ Playwright CLI will load config from `playwright-cli.json` by default so that yo
426
431
 
427
432
  </details>
428
433
 
429
- ## Environment
434
+ <details>
435
+ <summary>Configuration via env</summary>
430
436
 
431
437
  | Environment |
432
438
  |-------------|
@@ -472,3 +478,4 @@ Playwright CLI will load config from `playwright-cli.json` by default so that yo
472
478
  | `PLAYWRIGHT_MCP_USER_AGENT` specify user agent string |
473
479
  | `PLAYWRIGHT_MCP_USER_DATA_DIR` path to the user data directory. If not specified, a temporary directory will be created. |
474
480
  | `PLAYWRIGHT_MCP_VIEWPORT_SIZE` specify browser viewport size in pixels, for example "1280x720" |
481
+ </details>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@playwright/cli",
3
- "version": "0.0.63",
3
+ "version": "0.0.65",
4
4
  "description": "Playwright CLI",
5
5
  "repository": {
6
6
  "type": "git",
@@ -21,8 +21,8 @@
21
21
  },
22
22
  "dependencies": {
23
23
  "minimist": "^1.2.5",
24
- "playwright": "1.59.0-alpha-1770157258000",
25
- "playwright-core": "1.59.0-alpha-1770157258000"
24
+ "playwright": "1.59.0-alpha-1770338664000",
25
+ "playwright-core": "1.59.0-alpha-1770338664000"
26
26
  },
27
27
  "bin": {
28
28
  "playwright-cli": "playwright-cli.js"