Skip to main content
The Whop CLI (whop) lets you build and manage your Whop business from the terminal. Deploy apps, create products, set pricing, get shareable checkout links, run ads, and pull your stats — every command also works non-interactively for scripts and AI agents.

Install

Prebuilt binaries cover macOS and Linux. On other platforms, install via npm (requires Node.js 22 or later).
Confirm it works:

Get started

Run the CLI with no arguments:
That’s it — it signs you in through your browser and lets you choose or create the business the CLI should use. Run whop quickstart later to select a different business or create another one. Then use whop --help to choose a workflow, such as deploying an app with whop apps deploy or managing products and pricing directly.

Everyday commands

Every command takes --format json for structured output, and most groups follow the same shape: whop <resource> list|get|create|update. Account-scoped commands use the selected business by default. Pass another business with --account_id.

Deploy an app

One command verifies the current directory is a Whop-ready Vite app — offering to scaffold a new one or link an existing app if not — then builds, typechecks, uploads, and promotes the build to production. Pass --skip_promote to upload a preview build and whop apps builds promote <build_id> to ship it later. After a deploy, read your app’s server logs — every console.log, uncaught exception, and failed request, kept for 7 days:

Use it with AI agents

The CLI is self-describing, so agents can discover and drive every command:
For non-interactive use — CI, scripts, or headless agents — set WHOP_API_KEY instead of logging in. Create a key under Developer → API keys in your dashboard.

Update

The CLI keeps itself up to date in the background. To update immediately: