Installation
Install the CLI
Section titled “Install the CLI”Install @press-js/cli globally so the press command is available in your shell:
npm install --global @press-js/cliOr with pnpm:
pnpm add --global @press-js/cliRequirements
Section titled “Requirements”- Node.js >= 22
- Chromium — the CLI downloads Playwright’s bundled Chromium automatically on first run. You can also use an existing Chrome, Edge, or Chromium installation (see press.toml Playwright options).
Verify installation
Section titled “Verify installation”press --helpYou should see the usage output listing the available commands: render, install cloud, uninstall cloud, and cloud commands (after installation).
Framework packages
Section titled “Framework packages”The CLI handles rendering and PDF export only. To mark up your document, you also need the framework package for your UI library:
See the Quickstart guide to set up a complete project.
Upgrade
Section titled “Upgrade”The CLI checks for updates in the background when you use Cloud commands. Global @press-js/cli installs can be upgraded automatically. Project-local installs are not modified.
Control the setting:
press update configpress update config --auto falsepress update config --auto trueManual upgrade:
npm update --global @press-js/cliCheck the installed version:
press --version# ornpm ls --global @press-js/cli