---
title: "CLI"
canonical: "https://www.revenuecat.com/cli"
---

# Monetize your app from the CLI

The CLI for developers and agents to set up and manage RevenueCat. Connect stores, create products, paywalls, and experiments, and look up customers from your terminal.

[Read the CLI docs](https://www.revenuecat.com/docs/tools/cli)
[View on GitHub](https://github.com/RevenueCat/cli)

- **npx**: `npx @revenuecat/cli`
- **npm**: `npm install -g @revenuecat/cli`
- **Homebrew**: `brew install RevenueCat/tap/rc`

```text
$ rc auth status
✓ Logged in as Example Developer <dev@example.com> (profile: default)

$ rc products store sync app_abc --file catalog.csv
· Loaded 3 product desired state(s)
✓ Plan plan_8f3a saved for review
· Plan plan_8f3a: 2 create, 1 modify, 0 unchanged
· CREATE com.cat.pro.monthly
· CREATE com.cat.pro.yearly
· MODIFY com.cat.lifetime
·   title: Lifetime Access -> Cat Lifetime

Apply plan plan_8f3a to the connected stores?
✓ Yes
· Applied plan plan_8f3a to the stores; verifying readiness
· READY prod_monthly store status READY_TO_SUBMIT
· READY prod_yearly store status READY_TO_SUBMIT
✓ Store readiness: READY

PRODUCT                    ACTION  CHANGES  WARNINGS  APPLY STATUS
com.cat.pro.monthly   create  6        0         succeeded
com.cat.pro.yearly    create  6        0         succeeded
com.cat.lifetime      modify  1        0         succeeded
```

## Your agent speaks CLI

Every command supports --json and describes itself at runtime, so a caller parses a result rather than scraping formatted text.

From prompt to production

Watch Claude Code take a project from sign-in to live products using nothing but the RevenueCat CLI.

### Sign in and pick the project

The agent authenticates once; every later command acts with your account's permissions on the active project.

> Log in to RevenueCat and make sure we're working on the Cat project

```text
Bash(rc auth login)
✓ Logged in as Example Developer <dev@example.com>
· Profile: default

Bash(rc projects use proj_cat)
✓ Active project: Cat (proj_cat)
```

You're signed in and the CLI is pointed at Cat. I'll use this project for everything that follows.

### Connect App Store Connect

Store sign-in stays local and needs a person for two-factor auth; the CLI uploads only the resulting keys.

> Connect our iOS app to App Store Connect

```text
Bash(rc apps list --json)
· 1 app
  app_abc  Cat iOS  (app_store)

Bash(rc setup apple app_abc)
┌ App Store Connect
│ ◇ Signed in as dev@example.com
│ ◇ Created In-App Purchase key
│ ◇ Created App Store Connect API key
└ ✓ Credentials uploaded to Cat iOS
```

App Store Connect is connected. Your Apple sign-in never left this machine — only the generated keys were uploaded to RevenueCat.

### Sync the product catalog

Desired state goes in, a reviewable plan comes out. Nothing is applied until it's confirmed.

> Create monthly and yearly Pro subscriptions in the store from catalog.csv

```text
Bash(rc products store plan app_abc --file catalog.csv)
· Loaded 3 product desired state(s)
✓ Plan plan_8f3a saved for review
· 2 create, 1 modify, 0 unchanged

Bash(rc products store apply plan_8f3a --yes)
✓ Applied plan plan_8f3a
✓ com.cat.pro.monthly  create  succeeded
✓ com.cat.pro.yearly   create  succeeded
✓ Store readiness: READY
```

Both Pro products exist in App Store Connect and are ready to submit. The lifetime product kept its ID and only got the new title.

### Fix a customer's subscription

Support operations are commands too: look up a customer, then grant, extend, or refund.

> user_4821 says they paid but lost Pro access — check and fix it

```text
Bash(rc customers show user_4821 --json)
· Customer user_4821
  Active entitlements: none
  Last purchase: com.cat.pro.yearly (2 days ago)

Bash(rc customers grant user_4821 pro --duration yearly)
✓ Granted pro to user_4821 until 2027-10-13
```

user_4821 bought the yearly plan but had no active entitlement. I granted Pro for a year so they're unblocked; the original transaction is still on file for review.

### Check the numbers

The same Charts data as the dashboard, as structured output an agent can reason about.

> How is MRR trending this month?

```text
Bash(rc metrics --json)
▍ Cat — last 28 days
  MRR            $12,480   +8.2%
  Active subs    1,214     +61
  Trial starts   388       +12%

Bash(rc charts show mrr --json)
✓ 28 data points
  Lowest  $11,530  (Sep 16)
  Highest $12,480  (Oct 13)
```

MRR is up 8.2% to $12,480 with 61 net new subscribers. Trial starts grew faster than conversions, so there's room to look at the paywall next.

## Everything from your terminal

Log in, look up customers, connect stores and read your charts without leaving the shell.

**`rc auth login`**

Sign in with your browser, or paste an API key when there is no browser around.

```text
$ rc auth login
▍ RevenueCat CLI

· Opening your browser to sign in…
  If it does not open, visit https://app.revenuecat.com/cli/auth

✓ Logged in as dev@example.com
✓ Default project set to Dipsea (proj_8f2a1d)

→ Run rc projects use to switch projects
```

**`rc customers show cus_abc`**

Look up any customer, their active entitlements and latest transactions.

```text
$ rc customers show cus_abc
▍ Customer cus_abc

· Project       Dipsea (proj_8f2a1c)
· First seen    2024-03-12
· Last seen     2026-10-13

▍ Entitlements
✓ premium       active until 2026-11-12 · premium_annual
✗ family        expired 2025-01-04

→ Add --json to script this
```

**`rc setup apple app_abc`**

Create and upload App Store Connect keys and the vendor number in one guided flow.

```text
$ rc setup apple app_abc
┌ Set up App Store Connect for app_abc
│
◇ In-app purchase key
│ • Created key RC_IAP_2026
│ • Uploaded to RevenueCat
│
◇ App Store Connect API key
│ • Created key RC_ASC_2026
│ • Uploaded to RevenueCat
│
◇ Vendor number
│ • 87654321
│
└ ✓ App Store Connect is set up

! Sandbox purchases take up to 5 minutes to show in charts
```

**`rc charts show mrr`**

Read your MRR, revenue and trials as an interactive chart right in the shell.

```text
$ rc charts show mrr
▍ MRR · last 30 days

  $184,210  ▲ 4.2% vs. previous period

  ▁▂▂▃▃▄▄▅▅▆▆▆▇▇▇███

· Press ← → to change the range, q to quit
→ Try rc charts show revenue or rc charts show trials
```

## The CLI for agents and developers

Ask your agent to use the RevenueCat CLI to monetize your app. No need to leave your terminal or copy and paste API keys.

[Read the CLI docs](https://www.revenuecat.com/docs/tools/cli)
[View on GitHub](https://github.com/RevenueCat/cli)

- **npx**: `npx @revenuecat/cli`
- **npm**: `npm install -g @revenuecat/cli`
- **Homebrew**: `brew install RevenueCat/tap/rc`
