Skip to content

[Feature]: create-playwright --browsers option #29893

@karlhorky

Description

@karlhorky

🚀 Feature Request

Allow for specifying installPlaywrightBrowsers non-interactively with create-playwright, eg:

$ pnpm create playwright --browsers
# This will install Playwright browsers and skip the following question:
# ? Install Playwright browsers (can be done manually via `pnpm exec playwright install`)? ›

Example

See above

Motivation

Currently it's not possible to pass a true value for installPlaywrightBrowsers alone, without specifying other options

The closest thing is the --quiet option (see below, from the options list):

Usage: npx create-playwright@latest [options] [rootDir]
    Available options are:
      ...
      --quiet: do not ask for interactive input prompts

However, this also sets other options at the same time, and disables any interactive prompts, both of which may be undesirable side effects.

Implementation

A prerequisite to enable the behavior of skipping prompts when options are passed in:

Related

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions