Skip to content
Press.js Press.js Press.js Docs

Installation

Install @press-js/cli globally so the press command is available in your shell:

Terminal window
npm install --global @press-js/cli

Or with pnpm:

Terminal window
pnpm add --global @press-js/cli
  • 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).
Terminal window
press --help

You should see the usage output listing the available commands: render, install cloud, uninstall cloud, and cloud commands (after installation).

The CLI handles rendering and PDF export only. To mark up your document, you also need the framework package for your UI library:

  • React: npm install @press-js/react
  • Vue: npm install @press-js/vue

See the Quickstart guide to set up a complete project.

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:

Terminal window
press update config
press update config --auto false
press update config --auto true

Manual upgrade:

Terminal window
npm update --global @press-js/cli

Check the installed version:

Terminal window
press --version
# or
npm ls --global @press-js/cli