• 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

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

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.

ユースケース
  • ターミナルから RevenueCat を操作する
  • CI/CD パイプラインで自動実行する
  • RevenueCat CLI のインストール・認証設定
  • コマンド検索方法を確認する
本文(日本語訳)

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

rc はRevenueCatの公式コマンドラインツール(コマンドプロンプトから実行するプログラム)です。プロジェクト、アプリ、商品、特典、オファー、ペイウォール(購入画面)、グラフ、ストア状態などの操作のほとんどをRevenueCat MCP サーバと同じように処理できます(CLIはペイウォールの生成・編集機能を追加、MCP サーバはSDK(ソフトウェア開発キット)の機能制御と実験ツールを提供)。利用可能な方を選んでください。このスキルはCLIの使用方法について説明しています。

インストールと認証設定

  • インストールなしで実行: npx @revenuecat/cli <コマンド> (CI(自動ビルド環境)やエージェント用サンドボックスに適しています)
  • またはインストール: 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 で全コマンドのオプション、引数、使用例を一度に返します。エージェントがコマンド単位の詳細情報を得る最も確実な方法です
  • 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|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

具体的なコマンドを優先してください。まだCLIに実装されていないエンドポイントの場合のみ rc api <メソッド> <パス> に落とし込んでください。

原文(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

Prefer the specific command. Drop to rc api <METHOD> <path> only for endpoints not yet in the CLI surface.

原文・著作権は Anthropic および各プラグイン作者に帰属します。日本語訳は Claude API による自動翻訳です。