# `mix playwright_ex.install`
[🔗](https://github.com/ftes/playwright_ex/blob/v0.17.0-rc.5/lib/mix/tasks/playwright_ex.install.ex#L1)

Usage: `mix playwright_ex.install [--no-browsers] [--force] [-- BROWSER_ARGS...]`

Browser args are forwarded to `playwright install` (none: its default browsers, as
`npx playwright install`), e.g. `mix playwright_ex.install -- chromium firefox --with-deps`.
`--no-browsers` installs only the driver, for a browser launched with `:executable_path` or
`:channel`.

The task doesn't see the options of `PlaywrightEx.Supervisor` (`:cache_dir`, `:executable`,
`:node`); it reads the environment variables instead (see `PlaywrightEx.Driver`):

  * `PLAYWRIGHT_EX_CACHE_DIR` - where the driver is installed.
  * `PLAYWRIGHT_EX_EXECUTABLE`, `PLAYWRIGHT_NODEJS_PATH` - the CLI, or the Node binary, that
    installs the browsers. The pinned driver is downloaded all the same.
  * `HTTPS_PROXY`, `HTTP_PROXY` - the proxy for the driver download.

The Playwright CLI reads its own: `PLAYWRIGHT_BROWSERS_PATH` (where browsers go),
`PLAYWRIGHT_DOWNLOAD_HOST`, `HTTPS_PROXY`, ...

---

*Consult [api-reference.md](api-reference.md) for complete listing*
