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 <コマンド> (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 で全コマンドのオプション、引数、使用例を一度に返します。エージェントがコマンド単位の詳細情報を得る最も確実な方法ですrc schema <コマンド> --json で単一コマンドの詳細を返しますが、コマンドはスペース区切り(rc schema apps create)である必要があり、rc commands のコロン形式(rc schema apps:create)ではありません。後者は無言でルートスキーマを返すため、不確かな場合は rc commands --schemas を使用してくださいrc --help と rc <操作対象> --help で人間向けのヘルプを表示します--json で安定した機械可読出力が得られます。データは標準出力、進捗情報とその他の情報は標準エラーに送られます{ "data": ... } ですが、data 内の構造はコマンドで異なります。リストは通常 data.items[] ですが、一部コマンドは他のキーを使用します(グラフは data.names[] を使用)。スキーマまたはレスポンスを確認し、data.items だと決めつけないでください--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具体的なコマンドを優先してください。まだCLIに実装されていないエンドポイントの場合のみ rc api <メソッド> <パス> に落とし込んでください。
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|publishPrefer the specific command. Drop to rc api <METHOD> <path> only for endpoints not yet in the CLI surface.
原文・著作権は Anthropic および各プラグイン作者に帰属します。日本語訳は Claude API による自動翻訳です。