RevenueCat の CLI(コマンドラインツール)を使用してターミナルから RevenueCat を操作できます。`rc` という専用コマンドを使用することで、RevenueCat MCP サーバー(自動処理用のサーバー機能)の代わりに、人間、自動実行スクリプト(CI・継続的インテグレーション)、およびエージェント(自律的に動作するAI)から RevenueCat を制御できます。 このスキルは、インストール方法、認証設定、コマンドの検索方法、および出力形式の規約をカバーしています。他の RevenueCat スキルで CLI を使用するパスが提示される際に、このスキルが参照されます。
Drive RevenueCat from the terminal with the `rc` CLI, an alternative to the RevenueCat MCP server for humans, CI, and agents. Covers install, authentication, command discovery, and output conventions. Referenced by the other RevenueCat skills whenever they offer a CLI path.
rc はRevenueCatの公式コマンドラインツール(ターミナルからの操作用プログラム)です。RevenueCat MCP サーバーと同じく、プロジェクト、アプリ、商品、エンタイトルメント(利用権)、オファリング(販売パッケージ)、ペイウォール(課金画面)、グラフ、ストア状態などの操作に対応しています。CLIには壁紙の生成・編集機能が、MCPサーバーにはSDKの機能制御と実験機能があります。利用可能な方を選んでください。このスキルはCLI経由での使用を想定した参照資料です。
npx @revenuecat/cli <command> (CI環境やエージェント実行に最適)brew install RevenueCat/tap/rc 、または npm install -g @revenuecat/clirc auth login で認証(ブラウザを使ったOAuth(外部認証サービス))、または RC_API_KEY を設定--api-key を渡すか RC_API_KEY を設定sk_...)で認証します。これは正しい使い方です。CLIはサーバー側のツールだからです。これはクライアントアプリ用の公開鍵(appl_/goog_/amzn_)とは異なります。秘密鍵をアプリに埋め込まないでください。CLIは自己説明的です。コマンドやオプションを推測せず、プログラムに聞いてください:
rc commands --json は全コマンドツリーを一覧表示。機能IDはコロン形式(apps:create、products:store:plan)で表示されますrc commands --schemas --json はすべてのコマンドのオプション、引数、例を1回の呼び出しで返します。エージェントがコマンド詳細を確認する最も確実な方法ですrc schema <command> --json は単一コマンドの詳細を返します。コマンドはスペース区切り(rc schema apps create)で指定してください。コロン形式(rc schema apps:create)を使うと無言でルートスキーマが返ります。迷ったら rc commands --schemas を使ってくださいrc --help と rc <noun> --help で人間向けのヘルプを表示--json は機械が読める安定した出力を返します。データは標準出力に、進捗情報はエラー出力に送られます{ "data": ... } 形式ですが、data 内の構造はコマンドで異なります。リストは通常 data.items[] ですが、グラフなど別のキー(data.names[])を使うコマンドもあります。スキーマまたは実際の応答を確認してください--no-input は確認を求めず、失敗します。スクリプト、CI、エージェント環境で使用--yes / -y で変更操作の確認画面をスキップ--project-id <id> でプロジェクトを選択(またはデフォルトを rc projects use で設定)。スクリプトでは明示的に指定してください0 成功、1 エラー、2 使用方法が誤り、4 認証失敗、5 見つからない、6 速度制限正確なオプションは rc commands --schemas --json で確認(または rc schema <スペース区切りコマンド>)。よく使うカテゴリ:
rc projects list|create|use、rc apps list|create|keysrc products ...、rc entitlements ...、rc offerings ...、rc packages ...rc setup apple|google、rc products store plan|apply|syncrc charts list|show、rc customers ...rc paywalls generate|edit|publish (ダッシュボード設計・監査手順: revenuecat-paywall-design)rc open [section] [id] --print (リソースURL: revenuecat-dashboard-links)具体的なコマンドを優先してください。CLIにまだ実装されていないエンドポイントの場合のみ rc api <METHOD> <path> にフォールバックしてください。
rc is the official RevenueCat command line interface. It covers most of the same project, app, product, entitlement, offering, paywall, chart, and store-state operations as the RevenueCat MCP server (the CLI adds paywall generate/edit; the MCP server has some SDK feature-gate and experiment tools the CLI does not). Use whichever surface is available; this skill is the reference for the CLI path.
npx @revenuecat/cli <command> (good for CI and agent sandboxes).brew install RevenueCat/tap/rc, or npm install -g @revenuecat/cli.rc auth login (browser OAuth), or set RC_API_KEY. Non-interactively, pass --api-key or set RC_API_KEY.sk_...); that is correct because the CLI is a server-side tool. This is not the same as the public SDK keys (appl_/goog_/amzn_) you fetch for client app code. Never put a secret key in an app.The CLI is self-describing. Don't guess a command or flag, ask the binary:
rc commands --json lists the full command tree. Capability IDs appear in colon form (apps:create, products:store:plan).rc commands --schemas --json returns every command's flags, args, and examples in one call. This is the most reliable way for an agent to discover per-command detail.rc schema <command> --json returns detail for a single command, but the command must be space-separated tokens (rc schema apps create), not the colon form from rc commands. rc schema apps:create silently returns the root schema, so when in doubt use rc commands --schemas.rc --help and rc <noun> --help give human-readable help.--json gives stable, machine-readable output. Data goes to stdout, progress and chatter to stderr.{ "data": ... }, but the shape under data varies by command: lists are usually data.items[], though some commands use other keys (charts use data.names[]). Inspect the schema or the response rather than assuming data.items.--no-input never prompts, it fails instead. Use it in scripts, CI, and agents.--yes / -y skips confirmation prompts on mutating commands.--project-id <id> selects the project (or set a default with rc projects use). Pass it explicitly in scripts.0 success, 1 error, 2 bad usage, 4 auth, 5 not found, 6 rate limited.Look up exact flags with rc commands --schemas --json (or rc schema <space-separated command>). The common nouns:
rc projects list|create|use, rc apps list|create|keysrc products ..., rc entitlements ..., rc offerings ..., rc packages ...rc setup apple|google, rc products store plan|apply|syncrc charts list|show, rc customers ...rc paywalls generate|edit|publish (dashboard design/audit playbook: revenuecat-paywall-design)rc open [section] [id] --print (resource URLs: revenuecat-dashboard-links)Prefer the specific command. Drop to rc api <METHOD> <path> only for endpoints not yet in the CLI surface.
原文・著作権は Anthropic および各プラグイン作者に帰属します。日本語訳は Claude API による自動翻訳です。