Skip to content

Add --no-shell and --only-shell installer options - #203

Merged
smnandre merged 2 commits into
playwright-php:mainfrom
smnandre:feat/install-shell
Nov 15, 2026
Merged

smnandre merged 2 commits into
playwright-php:mainfrom
smnandre:feat/install-shell

Conversation

@smnandre

@smnandre smnandre commented Nov 8, 2026

Copy link
Copy Markdown
Member

The installer currently downloads both Chromium builds.

Add --only-shell for headless-shell runs and --no-shell for headed runs or the chromium channel, forwarding both options to Playwright with or without explicit browser targets.

Headless runs only, for example in CI

vendor/bin/playwright-install chromium --only-shell

Headed runs, or the 'chromium' channel

vendor/bin/playwright-install chromium --no-shell

Reject combining the two options, and document their use in the CLI help and browser guide.
Browser launch defaults remain unchanged.

Closes #193

@codecov

codecov Bot commented Nov 8, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@smnandre
smnandre merged commit aef8427 into playwright-php:main Nov 15, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

playwright-install: allow installing only the Chromium headless shell

1 participant