Skip to content

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

Open
smnandre wants to merge 1 commit into
playwright-php:mainfrom
smnandre:feat/install-shell
Open

smnandre wants to merge 1 commit 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!

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