RevenueCat のターミナル操作ツール `rc` CLI は、RevenueCat MCP サーバー(自動化システムとの接続規格)の代わりとなるもので、人間・継続的インテグレーション(自動テスト・デプロイ環境)・エージェント(自動操作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 にはない機能があります。どちらか利用できる方を選んで使ってください。このスキルは CLI の使い方に関する公式ガイドです。
npx @revenuecat/cli <command>(CI や AI エージェントのテスト環境に最適)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 は全コマンドのフラグ、引数、例を一度に返します。AI エージェントがコマンドの詳細を調べるのに最も確実な方法です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[])。スキーマまたはレスポンスを確認して、data.items があると仮定しないでください--no-input はプロンプトを表示せず、代わりにエラーで終了します。スクリプト、CI、AI エージェントで使用してください--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 <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|publishPrefer the specific command. Drop to rc api <METHOD> <path> only for endpoints not yet in the CLI surface.
原文・著作権は Anthropic および各プラグイン作者に帰属します。日本語訳は Claude API による自動翻訳です。