> ## 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

> Whop CLI'ı yükleyin, oturum açın ve tüm işletmenizi terminalden yönetin: ticaret, para, reklamlar ve uygulamalar genelinde 74 komut grubu.

Whop CLI (`whop`), Current API'yi terminalinize getirir: uygulamaları dağıtın, ürünler oluşturun, fiyatlandırma belirleyin, ödemeler gönderin, reklam yayınlayın ve istatistikleri çekin. Her komut, betikler ve yapay zeka ajanları için etkileşimsiz olarak da çalışır.

> [!WARNING]
>
> CLI'ın sandbox veya test modu yoktur. Her komut üretim ortamında çalışır ve birçoğu gerçek kaynaklar oluşturabilir veya gerçek para aktarabilir. Durumu değiştiren komutlar onay ister ve `whop send --dry-run` bir ödemeyi göndermeden önizler.

## Kurulum

```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]
>
> Kurulum betikleri `whop` dosyasını `~/.local/bin` (Windows'ta `%USERPROFILE%\.local\bin`) dizinine koyar ve kabuk profilinizi düzenlemez. Sonrasında `whop` bulunamazsa, bu dizini `PATH` değişkeninize ekleyin, örneğin `export PATH="$HOME/.local/bin:$PATH"`. Başka bir yere kurmak için `WHOP_INSTALL_DIR` ayarlayın. npm paketi Node.js 22 veya üstünü gerektirir.

Kurulumu kontrol edin. Sürüm numarasını yazdırır:

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

`whop --help`, CLI'ın konuştuğu API sürümünü de gösterir.

## Oturum açma

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

`whop login --method oauth` bir tarayıcı açar. `whop login --method api-key --apiKey whop_xxx` etkileşimsizdir. Profiller birden fazla kimlik tutmanızı sağlar: `whop auth list`, `whop auth switch` ve `whop auth status` bunları yönetir. Ardından CLI'ın adına işlem yapacağı işletmeyi seçin:

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

## Burada neler var

`whop --help` komutunun grupladığı şekilde düzenlenmiş 74 komut grubu:

| Kategori | Gruplar |
| - | - |
| Başlarken | `quickstart` · `apps` |
| Ticaret | `products` · `variants` · `promo-codes` · `checkout-configurations` · `waitlist-entries` · `memberships` · `shipments` · `reviews` · `review-reports` · `product-affiliates` |
| Temel kaynaklar | `accounts` · `users` · `members` · `team-members` · `search` · `external-accounts` · `social-accounts` |
| Ödemeler | `payments` · `invoices` · `confirmation-tokens` · `payment-quotes` · `setup-intents` · `refunds` · `resolution-center-cases` · `dispute-alerts` · `disputes` · `payment-rules` · `financing-applications` |
| Para | `deposits` · `transfers` · `payouts` · `ledgers` · `cards` · `cashback-rules` · `swaps` · `trades` · `verifications` · `send` |
| Web siteleri | `domains` · `app-installations` · `experiments` |
| Reklamlar | `ad-campaigns` · `ad-groups` · `ads` · `audiences` · `ad-pixels` |
| Analitik | `stats` · `people` · `events` · `exports` · `economic-intelligence` |
| İletişim | `livestreams` · `notifications` · `email-addresses` |
| Partnerler | `partners` · `partner-referral-requests` |
| İş gücü | `bounties` · `bounty-submissions` |
| Medya | `files` · `media` |
| Geliştirici | `api-keys` · `webhooks` · `permissions` · `api-logs` · `report-feedback` · `ask-question` |
| Kimlik doğrulama | `auth` · `login` · `logout` |
| Entegrasyonlar | `completions` · `mcp` · `skills` |

Tüm komutlar için [Komutlar](https://docs.whop.com/tr/cli/commands.md) sayfasına bakın veya `whop <group> --help` çalıştırın.

## Günlük komutlar

```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
```

Çoğu grup aynı yapıyı izler: `whop <resource> list|get|create|update`. Her komut, yapılandırılmış çıktı için `--format json` kabul eder. Hesap kapsamlı komutlar varsayılan olarak seçili işletmeyi kullanır ve `--account_id` farklı bir işletme seçer.

## Bir uygulamayı dağıtma

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

Bağlı projeyi derler, tür denetiminden geçirir, yükler ve üretime yükseltir. Yükseltmeden yüklemek için `--preview` iletin, ardından daha sonra `whop apps builds promote <build_id>` ile yayınlayın. Eski bir derlemeyi yükseltmek aynı zamanda geri alma yönteminizdir.

Bir dağıtımdan sonra uygulamanızın sunucu günlüklerini okuyun:

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

## Etkileşimsiz kullanım

CI, betikler veya arayüzsüz ajanlar için oturum açmak yerine `WHOP_API_KEY` ayarlayın. [Panelinizde](https://whop.com/dashboard) **Developer** altında bir anahtar oluşturun ve bir ajana anahtar vermeden önce [Kimlik doğrulama ve API anahtarları](https://docs.whop.com/tr/developer/guides/auth-scoping.md) sayfasına bakın.

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

macOS ve Linux'taki bağımsız kurulumlar arka planda kendini günceller. Yalnızca bildirim almak için `WHOP_CLI_AUTO_UPDATE=0` ayarlayın. Aksi halde etkileşimli bir terminal, daha yeni bir sürüm çıktığında size bildirir ve `whop --update` onu yükler. Homebrew kurulumları `brew upgrade whop` ile güncellenir.

## Sonraki adımlar

> [card] [Komutlar](https://docs.whop.com/tr/cli/commands.md)
>
> CLI'ın kendisinden alınan açıklamalarla her komut grubu.

> [card] [Ajan modu](https://docs.whop.com/tr/cli/agent-mode.md)
>
> Beceri senkronizasyonu ve makine tarafından okunabilir bayraklar.

> [card] [CLI ve Claude ile geliştirin](https://docs.whop.com/tr/developer/guides/cli-with-claude.md)
>
> Döngüde bir ajanla bir Whop uygulamasının iskeletini oluşturun ve yayınlayın.

> [card] [Kimlik doğrulama ve API anahtarları](https://docs.whop.com/tr/developer/guides/auth-scoping.md)
>
> CLI'da oturum açtığınız kimlik bilgisinin kapsamını belirleyin.


## Related topics

- [Whop CLI Komutları](https://docs.whop.com/tr/cli/commands.md)
- [Whop CLI Ajan Modu](https://docs.whop.com/tr/cli/agent-mode.md)
- [CLI ve Claude ile Geliştirin](https://docs.whop.com/tr/developer/guides/cli-with-claude.md)
