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).
Get started
Run the CLI with no arguments: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
--format json for structured output, and most groups follow the same shape: whop <resource> list|get|create|update.
Commands that act on one account take the business’s biz_ ID or public route positionally. Account-scoped commands use the selected business by default. Pass --account_id to choose a different scope. Account preferences and reserves remain account-scoped.
Deploy an app
--skip_promote to upload a preview build and whop apps builds promote <build_id> to ship it later.
After a deploy, pass the app ID to read its server-runtime logs — every console.log, uncaught exception, and failed request, kept for 7 days:
--created_after and --created_before with ISO 8601 timestamps to select a time window.
whop apps logs captures the hosted server runtime. Check your browser’s developer console for client-side JavaScript errors.Manage app secrets
App secrets are key-value environment bindings for your app. They’re encrypted at rest and injected into the hosted server runtime.whop apps dev also injects them locally, except names that control the local runtime.
--app app_xxxxxxxx to target an app explicitly. During whop apps dev, an environment variable exported on your machine takes precedence over a stored app secret.
App secrets are runtime configuration, not app API keys.
whop apps secrets doesn’t create or rotate the app’s WHOP_API_KEY. See App API keys to find that credential.Use it with coding assistants
The CLI is self-describing, so agents can discover and drive every command:WHOP_API_KEY instead of logging in. For API commands, it takes precedence over any saved CLI profile for that invocation. Create a key under Developer → API keys in your dashboard.
whop api-keys permissions lists the permissions that can be assigned to API keys. Creating, listing, updating, rotating, and revoking keys requires a first-party dashboard session, so those operations aren’t exposed by the CLI. Manage keys in your Whop dashboard.
