• Projects
  • Service
  • About
  • branding.bz
  • Podcast
  • Tips
  • FAQ
  • Recruit
  • Download
  • Contact
  • branding.bz(ブランド構築SaaS)
  • DESIGN NOW(デザインメディア)
  • X
  • LinkedIn
  • Spotify
  • Facebook

213-0011 神奈川県川崎市高津区久本3-6-7-303

© 2026 ID INC. All rights reserved

claude-skills/スキル
SKILLOfficialdevelopment

revenuecat-cli

プラグイン
rc
ソース
GitHub で見る ↗
説明

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.

ユースケース
  • RevenueCat CLI のインストール方法を確認する
  • RevenueCat の認証設定を行う
  • RevenueCat コマンドの使い方を調べる
  • CLI 出力形式の規則を理解する
本文(日本語訳)

revenuecat-cli: ターミナルからRevenueCatを操作する

rc はRevenueCatの公式コマンドラインツール(ターミナルで実行するプログラム)です。プロジェクト、アプリ、商品、エンタイトルメント(購入権の定義)、オファリング、ペイウォール、グラフ、ストア状態などの操作で、RevenueCat MCP サーバーとほぼ同じ機能を備えています。(CLI ではペイウォール生成・編集が追加で対応し、MCP サーバーにはいくつかの SDK 機能制御やテストツールがあります)。利用できるツールのいずれかを選んでご使用ください。このスキルは CLI での利用方法の参考資料です。

インストールと認証

  • インストールなしで実行: npx @revenuecat/cli <command>(CI や AI エージェントの環境に最適)
  • またはインストール: brew install RevenueCat/tap/rc か npm install -g @revenuecat/cli
  • rc auth login で一度だけ認証(ブラウザから OAuth でログイン)、または RC_API_KEY を設定する
  • 対話なしで実行する場合は --api-key を指定するか RC_API_KEY を設定してください
  • CLI は RevenueCat の秘密鍵(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[] ですが、グラフなど別のキーを使うコマンドもあります。スキーマやレスポンスで確認してください
  • --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|keys
  • 商品カタログ:rc products ...、rc entitlements ...、rc offerings ...、rc packages ...
  • ストア認証と状態:rc setup apple|google、rc products store plan|apply|sync
  • データ:rc 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> にフォールバックしてください。

原文(English)を表示

revenuecat-cli: driving RevenueCat from the terminal

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.

Install and authenticate

  • Run without installing: npx @revenuecat/cli <command> (good for CI and agent sandboxes).
  • Or install: brew install RevenueCat/tap/rc, or npm install -g @revenuecat/cli.
  • Authenticate once with rc auth login (browser OAuth), or set RC_API_KEY. Non-interactively, pass --api-key or set RC_API_KEY.
  • The CLI authenticates with a RevenueCat secret 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.

Discover the surface

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.

Output conventions

  • --json gives stable, machine-readable output. Data goes to stdout, progress and chatter to stderr.
  • The envelope is { "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.
  • Exit codes: 0 success, 1 error, 2 bad usage, 4 auth, 5 not found, 6 rate limited.

Common operations

Look up exact flags with rc commands --schemas --json (or rc schema <space-separated command>). The common nouns:

  • Projects and apps: rc projects list|create|use, rc apps list|create|keys
  • Catalog: rc products ..., rc entitlements ..., rc offerings ..., rc packages ...
  • Store credentials and state: rc setup apple|google, rc products store plan|apply|sync
  • Data: rc charts list|show, rc customers ...
  • Paywalls: rc paywalls generate|edit|publish (dashboard design/audit playbook: revenuecat-paywall-design)
  • Dashboard: 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 による自動翻訳です。