The Papermark CLI is a single binary that runs every API operation from your terminal. Use it to log in once, upload entire folders into a data room, mint links from a script, or wire Papermark into a CI pipeline. Every command supports --json output for clean machine parsing.
The Papermark CLI is available on the Business plan and above. Self-hosted Papermark instances can use the CLI on any plan.
Step 1: Install the CLI
The CLI is published to npm. You need Node.js 18 or newer.
npm install -g papermark
Verify the install:
papermark --version
Step 2: Log in
The CLI supports two login flows.
OAuth 2.1 device flow (recommended)
papermark login
The CLI prints a URL and a short code. Open the URL, paste the code, and approve the login in the browser. The token is stored at ~/.config/papermark/auth.json.
Long-lived token
If you're scripting Papermark in CI or want a long-lived credential, generate a token in Settings, API Tokens and pass it directly: