Install
brew tap AndroidPoet/tap && brew install revenuecat-cli
Or download from Releases. After install, use revenuecat-cli or the alias rc.
Setup
rc auth login --api-key sk_your_key_here
rc init --project proj_your_project_id
rc doctor
Commands
Projects
rc projects list
rc projects create --name "My Project"
Apps
rc apps list
rc apps get --app-id app_xxx
rc apps create --name "My App" --type play_store
rc apps update --app-id app_xxx --name "New Name"
rc apps delete --app-id app_xxx --confirm
rc apps api-keys --app-id app_xxx
Products
rc products list
rc products get --product-id prod_xxx
rc products create --store-identifier com.app.monthly --type subscription --app-id app_xxx
rc products delete --product-id prod_xxx --confirm
Entitlements
rc entitlements list
rc entitlements get --entitlement-id entl_xxx
rc entitlements create --lookup-key premium --display-name "Premium"
rc entitlements update --entitlement-id entl_xxx --display-name "Premium+"
rc entitlements delete --entitlement-id entl_xxx --confirm
rc entitlements list-products --entitlement-id entl_xxx
rc entitlements attach-products --entitlement-id entl_xxx --product-ids prod1,prod2
rc entitlements detach-products --entitlement-id entl_xxx --product-ids prod1
Offerings
rc offerings list
rc offerings get --offering-id ofrngs_xxx
rc offerings create --lookup-key default --display-name "Default Offering"
rc offerings update --offering-id ofrngs_xxx --is-current
rc offerings update --offering-id ofrngs_xxx --metadata '{"theme":"dark"}'
rc offerings delete --offering-id ofrngs_xxx --confirm
Packages
rc packages list --offering-id ofrngs_xxx
rc packages get --package-id pkg_xxx
rc packages create --offering-id ofrngs_xxx --lookup-key monthly --display-name "Monthly"
rc packages update --package-id pkg_xxx --display-name "Monthly Plan"
rc packages delete --package-id pkg_xxx --confirm
rc packages list-products --package-id pkg_xxx
rc packages attach-products --package-id pkg_xxx --product-ids prod1,prod2
rc packages detach-products --package-id pkg_xxx --product-ids prod1
Customers
rc customers list
rc customers get --customer-id user_xxx
rc customers create --customer-id user_xxx
rc customers delete --customer-id user_xxx --confirm
rc customers list-active-entitlements --customer-id user_xxx
rc customers list-subscriptions --customer-id user_xxx
rc customers list-purchases --customer-id user_xxx
rc customers list-invoices --customer-id user_xxx
rc customers list-aliases --customer-id user_xxx
rc customers list-attributes --customer-id user_xxx
rc customers set-attributes --customer-id user_xxx --attributes '{"key":"value"}'
rc customers transfer --customer-id user_xxx --target-id user_yyy
rc customers grant-entitlement --customer-id user_xxx --entitlement-id entl_xxx
rc customers revoke-entitlement --customer-id user_xxx --entitlement-id entl_xxx
rc customers assign-offering --customer-id user_xxx --offering-id ofrngs_xxx
Subscriptions
rc subscriptions get --subscription-id sub_xxx
rc subscriptions list-entitlements --subscription-id sub_xxx
rc subscriptions cancel --subscription-id sub_xxx --confirm
rc subscriptions refund --subscription-id sub_xxx --confirm
Purchases
rc purchases get --purchase-id pur_xxx
rc purchases list-entitlements --purchase-id pur_xxx
rc purchases refund --purchase-id pur_xxx --confirm
Paywalls
rc paywalls list
rc paywalls get --paywall-id pw_xxx
rc paywalls create --offering-id ofrngs_xxx
rc paywalls delete --paywall-id pw_xxx --confirm
Metrics
rc metrics overview
Webhooks
rc webhooks list
rc webhooks create --url https://example.com/webhook
Audit Logs
rc audit-logs list
Auth
rc auth login --api-key sk_xxx --name production
rc auth login --api-key sk_xxx --name staging --default-project proj_staging
rc auth switch --name staging
rc auth list
rc auth current
rc auth delete --name old --confirm
Utilities
rc doctor
rc init --project proj_xxx
rc completion zsh > "${fpath[1]}/_rc"
rc version
rc apps list # JSON (default)
rc apps list --pretty # Pretty JSON
rc apps list -o table # Table
rc apps list -o csv # CSV
rc apps list -o tsv # TSV
rc apps list -o yaml # YAML
rc apps list -o minimal # IDs only
rc products list --limit 50
rc products list --starting-after prod_xxx
rc products list --all
Contributing
make build
make test
make lint
License
MIT
Not affiliated with RevenueCat Inc.