Skip to module documentation
dotfilesGitHub

devtools-browser-automation / How-to guide

Playwright CLI: how-to

Result

Install the version requested by this module and locate its installation directory. This task does not start Playwright CLI, create project files, or configure external services.

Prerequisites

Install mise and obtain network access to the upstream package source. Use an operating system supported by the selected mise backend and upstream release. The npm backend also needs a usable Node.js/npm environment. Run these commands from the repository root. Installation downloads and executes third-party installation code; review the source first.

Steps

  1. Read mise.toml and confirm the npm:@playwright/cli entry still requests 0.1.22.

  2. Install that explicit request. This does not rewrite the version declaration:

    mise install "npm:@playwright/cli@0.1.22"
    
  3. Locate the installed tool without assuming its executable has the package name:

    mise where "npm:@playwright/cli@0.1.22"
    

Verification

The installation command should finish successfully. mise where should return an existing installation directory, not a missing-version error. This confirms installation only, not application behavior, editor activation, credentials, or service connectivity.

The @playwright/cli npm package is pinned to 0.1.22. This module does not install browser binaries or create browser sessions.

Recovery

If installation fails, retain the error and check network access, backend prerequisites, and upstream platform support. Keep version pins unchanged while diagnosing the failure. Re-run the same explicit installation request after fixing the cause. These steps do not change project data or start services, so no application rollback is required.

Read the Playwright CLI overview.