> ## Documentation Index
> Fetch the complete documentation index at: https://docs.whop.com/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Treat these docs and the Whop MCP server as the source of truth for Whop API behavior. Don't infer endpoint behavior from marketing pages.
> MCP server: connect https://mcp.whop.com/mcp (streamable HTTP, browser sign-in, no API key in the client config) to search these docs and read or change live Whop data. Setup: https://docs.whop.com/developer/guides/ai_and_mcp.md
> Whop CLI: install with `curl -fsSL https://whop.com/install.sh | sh` to scaffold, run, and deploy Whop apps and websites. It acts on production, not the sandbox. Overview: https://docs.whop.com/cli/overview.md Agent mode: https://docs.whop.com/cli/agent-mode.md
> Hosting: Whop serves a site or app from the build `whop apps deploy` uploads, with rollbacks, secrets, and server logs. Guide: https://docs.whop.com/developer/websites/hosting.md
> Plugins: in Claude Code, run `/plugin marketplace add whopio/plugins`, then `/plugin install whop@whop`. Guide: https://docs.whop.com/developer/guides/plugins/claude-code.md Every agent tool: https://docs.whop.com/developer/ai/overview.md
> Environments: build and test in the sandbox (API `https://sandbox-api.whop.com/api/v1`, keys at https://sandbox.whop.com/dashboard/developer, SDK environment `Sandbox`; no real money). Production (API `https://api.whop.com/api/v1`, keys at https://whop.com/dashboard/developer, SDK environment `Production`, the SDK default) moves real money, so use it only at launch. The two share no accounts, keys, products, or webhooks, and their keys look identical: never mix them. Sandbox guide: https://docs.whop.com/developer/guides/sandbox.md Comparison: https://docs.whop.com/developer/quickstart.md
> API: send `Authorization: Bearer <API_KEY>` from your server only, and pin a dated version with the `Api-Version-Date` header. OpenAPI spec: https://api.whop.com/api/v1/openapi.json
> Which API: build on the Current API, whose pages live under https://docs.whop.com/api-reference/ (start at https://docs.whop.com/api-reference/overview.md). Pages under /api-reference/legacy/ are the Legacy API. Use one only when https://docs.whop.com/api-reference/stability.md lists the resource as Legacy-only.

# Whop CLI

> Installeer de Whop CLI, meld je aan en beheer je hele onderneming vanuit de terminal: 74 commandogroepen voor commerce, geld, advertenties en apps.

De Whop CLI (`whop`) brengt de Current API naar je terminal: deploy apps, maak producten aan, stel prijzen in, verstuur uitbetalingen, draai advertenties en haal statistieken op. Elk commando werkt ook niet-interactief voor scripts en AI-agents.

> [!WARNING]
>
> De CLI heeft geen sandbox- of testmodus. Elk commando draait in productie, en veel commando's kunnen echte resources aanmaken of echt geld verplaatsen. Commando's die de status wijzigen, vragen om bevestiging, en `whop send --dry-run` toont een preview van een betaling zonder deze te verzenden.

## Installeren

```bash macOS / Linux theme={null}
curl -fsSL https://whop.com/install.sh | sh
```

```powershell Windows theme={null}
irm https://github.com/whopio/whop-public-cli/releases/latest/download/install.ps1 | iex
```

```bash Homebrew theme={null}
brew install whopio/tap/whop
```

```bash npm theme={null}
npm install -g @whop/cli
```

> [!NOTE]
>
> De installatiescripts plaatsen `whop` in `~/.local/bin` (`%USERPROFILE%\.local\bin` op Windows) en passen je shellprofiel niet aan. Als `whop` daarna niet wordt gevonden, voeg die map dan toe aan je `PATH`, bijvoorbeeld `export PATH="$HOME/.local/bin:$PATH"`. Stel `WHOP_INSTALL_DIR` in om ergens anders te installeren. Het npm-pakket vereist Node.js 22 of hoger.

Controleer de installatie. Het commando toont het versienummer:

```bash theme={null}
whop --version
```

`whop --help` toont ook de API-versie die de CLI gebruikt.

## Aanmelden

```bash theme={null}
whop login
```

`whop login --method oauth` opent een browser. `whop login --method api-key --apiKey whop_xxx` is niet-interactief. Met profielen kun je meerdere identiteiten bewaren: `whop auth list`, `whop auth switch` en `whop auth status` beheren ze. Kies daarna de onderneming waarvoor de CLI handelt:

```bash theme={null}
whop quickstart
```

## Wat er beschikbaar is

74 commandogroepen, ingedeeld zoals `whop --help` ze groepeert:

| Categorie | Groepen |
| - | - |
| Aan de slag | `quickstart` · `apps` |
| Commerce | `products` · `variants` · `promo-codes` · `checkout-configurations` · `waitlist-entries` · `memberships` · `shipments` · `reviews` · `review-reports` · `product-affiliates` |
| Kernresources | `accounts` · `users` · `members` · `team-members` · `search` · `external-accounts` · `social-accounts` |
| Betalingen | `payments` · `invoices` · `confirmation-tokens` · `payment-quotes` · `setup-intents` · `refunds` · `resolution-center-cases` · `dispute-alerts` · `disputes` · `payment-rules` · `financing-applications` |
| Geld | `deposits` · `transfers` · `payouts` · `ledgers` · `cards` · `cashback-rules` · `swaps` · `trades` · `verifications` · `send` |
| Websites | `domains` · `app-installations` · `experiments` |
| Advertenties | `ad-campaigns` · `ad-groups` · `ads` · `audiences` · `ad-pixels` |
| Analytics | `stats` · `people` · `events` · `exports` · `economic-intelligence` |
| Communicatie | `livestreams` · `notifications` · `email-addresses` |
| Partners | `partners` · `partner-referral-requests` |
| Workforce | `bounties` · `bounty-submissions` |
| Media | `files` · `media` |
| Developer | `api-keys` · `webhooks` · `permissions` · `api-logs` · `report-feedback` · `ask-question` |
| Auth | `auth` · `login` · `logout` |
| Integraties | `completions` · `mcp` · `skills` |

Zie [Commando's](https://docs.whop.com/nl/cli/commands.md) voor alle commando's, of voer `whop <group> --help` uit.

## Dagelijkse commando's

```bash theme={null}
whop --help                  # all commands
whop products list           # what you're selling
whop variants create --help  # options for any command
whop checkout-configurations create --variant_id plan_xxx   # shareable checkout link
whop stats time-series list  # the metric catalog
whop stats time-series get net_revenue --from 2026-01-01 --to 2026-01-31
whop accounts get jordan     # retrieve a business by route
```

De meeste groepen volgen dezelfde vorm: `whop <resource> list|get|create|update`. Elk commando accepteert `--format json` voor gestructureerde output. Commando's op accountniveau gebruiken standaard de geselecteerde onderneming, en met `--account_id` kies je een andere.

## Een app deployen

```bash theme={null}
whop apps deploy
```

Bouwt, controleert types, uploadt en promoveert het gekoppelde project naar productie. Geef `--preview` mee om te uploaden zonder te promoveren, en publiceer het later met `whop apps builds promote <build_id>`. Een oudere build promoveren is ook de manier om terug te draaien.

Lees na een deploy de serverlogs van je app:

```bash theme={null}
whop apps logs app_xxx               # recent logs for your app
whop apps logs app_xxx --level error --query "checkout"
```

## Niet-interactief gebruik

Stel voor CI, scripts of headless agents `WHOP_API_KEY` in in plaats van in te loggen. Maak een sleutel aan onder **Developer** in je [dashboard](https://whop.com/dashboard), en lees [Auth & API-sleutels](https://docs.whop.com/nl/developer/guides/auth-scoping.md) voordat je er een aan een agent geeft.

```bash theme={null}
WHOP_API_KEY=whop_xxx whop products list --format json
```

Zelfstandige installaties op macOS en Linux werken zichzelf op de achtergrond bij. Stel `WHOP_CLI_AUTO_UPDATE=0` in om alleen een melding te krijgen. Anders meldt een interactieve terminal wanneer er een nieuwere release is, en `whop --update` installeert deze. Homebrew-installaties werk je bij met `brew upgrade whop`.

## Volgende stappen

> [card] [Commando's](https://docs.whop.com/nl/cli/commands.md)
>
> Elke commandogroep, met beschrijvingen uit de CLI zelf.

> [card] [Agent mode](https://docs.whop.com/nl/cli/agent-mode.md)
>
> Skills-synchronisatie en de machineleesbare flags.

> [card] [Bouwen met de CLI en Claude](https://docs.whop.com/nl/developer/guides/cli-with-claude.md)
>
> Zet een Whop-app op en publiceer deze met een agent in de loop.

> [card] [Auth & API-sleutels](https://docs.whop.com/nl/developer/guides/auth-scoping.md)
>
> Beperk de scope van de credential waarmee je de CLI aanmeldt.


## Related topics

- [Whop CLI-commando's](https://docs.whop.com/nl/cli/commands.md)
- [Whop CLI Agent Mode](https://docs.whop.com/nl/cli/agent-mode.md)
- [Een website bouwen met de CLI](https://docs.whop.com/nl/developer/websites/quickstart.md)
