motionpr install

Download the Chromium, Firefox or WebKit build that matches MotionPR's bundled Playwright version.

Shell
npx motionpr install [browsers...] [options]

Downloads Playwright's builds of the given engines in the versions that match the bundled Playwright (1.65), once per machine, then checks that each one is in place.

Argument / optionDescription
browsers...chromium, firefox, webkit (default: the config's browser.name, or MOTIONPR_BROWSER, or Chromium without a config)
--allChromium, Firefox and WebKit
--with-depsAlso install system libraries (Linux; needs root)
--only-shellChromium only: the headless shell (smaller; --headed will not work)
--forceReinstall even if present
--dry-runPrint what would be installed

An unknown engine name exits 2. When the download fails, or an engine is still missing afterwards, the command exits 2 and prints the usual causes: no network or a proxy (HTTPS_PROXY, or PLAYWRIGHT_DOWNLOAD_HOST for a mirror), missing system libraries on Linux (--with-deps), and a read-only cache (PLAYWRIGHT_BROWSERS_PATH). See Browser setup.

Shell
npx motionpr install                       # the configured engine (Chromium by default)
npx motionpr install firefox webkit        # several engines
npx motionpr install --all --with-deps     # every engine on a fresh Linux machine or CI runner
npx motionpr install webkit --dry-run      # what would be downloaded, and where

On Linux, --with-deps installs each engine's libraries with apt; WebKit needs the most. The engines' requirements are in Chromium, Firefox and WebKit.