概要
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
Firebase Extensions を使用すると、アプリの開発、メンテナンス、拡張にかかる時間を短縮できます。
アプリやプロジェクトのニーズを解決する Firebase Extension が見つかったら、その拡張機能をインストールして構成するだけです。拡張機能の構成が複数必要な場合、インストールするインスタンスごとに異なる設定を使用して拡張機能を複数回インストールできます。
拡張機能を使用すると、アプリやプロジェクトの機能を実装したり、タスクを自動化したりするコードの調査、作成、デバッグに時間がかかりません。
拡張機能のインストールや管理を行うには、オーナーまたは編集者、あるいは Firebase 管理者のいずれかのロールが割り当てられている必要があります。
拡張機能をインストールするには、プロジェクトが Blaze(従量課金制)プランを利用している必要があります。拡張機能のインストールは無料ですが、Firebase サービス、または Cloud Secret Manager などのクラウド サービスの使用に対しては、使用量がサービスの無料枠を超えた場合に請求されることがあります。
Firebase Local Emulator Suite のコンポーネントである Extensions エミュレータを使用して、拡張機能をプロジェクトにインストールする前に評価することもできます。
公式の Firebase 拡張機能
公式の Firebase 拡張機能は、Firebase と Firebase Extensions パートナー サービスによって開発、テストされています。これらの拡張機能は信頼性が高く、安全です。
Firebase 拡張機能をブラウジングする
Extensions Hub で Firebase 拡張機能をブラウジングします。
拡張機能のソースコードを表示する
拡張機能のソースコードへのリンクを見つけるには、Extensions Hub で拡張機能のカードの [詳細] をクリックします。
拡張機能のソースコードの内容
拡張機能のソース ディレクトリには以下が含まれています。
extension.yaml ファイル - 拡張機能のメタデータが含まれ、作成されるリソース、動作に必要な Google API とアクセスロール、拡張機能のユーザー構成パラメータ(環境変数)を定義します
functions ディレクトリ - 拡張機能のソースコードのファイルが含まれます
README ファイル - 拡張機能のメタデータ(ただし、人が読める形式)と、PREINSTALL ファイルの内容が含まれます
PREINSTALL ファイル - 拡張機能の仕組み、必要なプリインストール タスク、構成要件、拡張機能の詳細を説明します
POSTINSTALL ファイル - 具体的な使用手順と、さらなる統合の要件を説明します
拡張機能のリソース
すべての Firebase プロジェクトには、いくつかの種類の「リソース」が含まれます。プロジェクト リソースには、デプロイされる Cloud Functions、データベース インスタンス、Cloud Storage バケット、Cloud Scheduler ジョブ、Cloud Secret Manager データなどがあります。
拡張機能をインストールすると、Firebase によって新しい拡張機能インスタンス固有のリソースがプロジェクト内に作成されます。これらのリソースは、拡張機能が動作するために必要です。
拡張機能のインスタンスをアンインストールすると、その拡張機能のインスタンス専用に作成されたすべてのリソース(関数のセットなど)が削除されます。ただし、以下は削除されません。
Firebase コンソール、Firebase CLI、自動生成された SDK を使用する {: #console-vs-cli}
拡張機能のインストールと管理は、Firebase コンソールまたは Firebase CLI を使用して行うことができます。また、コードで自動生成された SDK を使用して行うことができます。
アクション |
Firebase コンソール |
Firebase CLI |
自動生成された SDK |
詳細情報の表示(プリインストール) |
|
|
|
インストール |
|
|
|
構成の表示(インストール後) |
|
|
|
構成を編集 |
|
|
|
バージョンの更新 |
|
|
|
アンインストール |
|
|
|
次のステップ
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-08-13 UTC。
[null,null,["最終更新日 2025-08-13 UTC。"],[],[],null,["\u003cbr /\u003e\n\nFirebase Extensions help you reduce time spent on development, maintenance,\nand growth of your app.\n\nWhen you find a Firebase Extension that solves a need for your app\nor project, all you do is install and configure the extension. If you need\nmultiple configurations of the extension, you can install the extension multiple\ntimes, with a different configuration for each instance you install.\n\nWith extensions,\nyou don't spend time researching, writing, and debugging the code that\nimplements functionality or automates a task for your app or project.\n\nTo install or manage extensions, you must be assigned one of these roles:\n[Owner or Editor](/docs/projects/iam/roles-basic) or\n[Firebase Admin](/docs/projects/iam/roles-predefined-all-products).\n\nTo install an extension, your project must be on the **Blaze** (pay as you\ngo) plan. Although there is no charge for installing an extension, you might be\ncharged for your use of Firebase services or Cloud services such as\n[Cloud Secret Manager](https://cloud.google.com/secret-manager/pricing), if your usage exceeds the services' free\ntier.\n\nYou can also evaluate extensions before installing them on a project using the\nExtensions emulator, a component of the Firebase Local Emulator Suite.\n\nOfficial Firebase extensions\n\nThe **official Firebase extensions** are developed and tested by Firebase\nand Firebase Extensions partner services. These extensions are reliable and\nsecure.\n\nBrowse Firebase extensions\n\nBrowse Firebase extensions in the [Extensions Hub](https://extensions.dev/extensions).\n\nView the source code of an extension\n\nTo find a link to the source code for an extension,\nclick **Learn more** on the extension's card in the Extensions Hub.\n\nContents of an extension's source code\n\nAn extension's source directory includes:\n\n- **extension.yaml file** --- Contains the extension's metadata and defines\n the [resources](#resources) created, the Google APIs and\n [access roles](/docs/extensions/permissions-granted-to-extension) required for\n operation, and any user-configured parameters (environment variables) for the\n extension\n\n- **functions directory** --- Contains the files for the source code for the\n extension\n\n- **README file** --- Lists the extension's metadata (but in more\n human-readable format) as well as the content from the PREINSTALL file\n\n- **PREINSTALL file** --- Describes how the extension works, any necessary\n pre-installation tasks, configuration requirements, and details about the\n extension\n\n- **POSTINSTALL file** --- Describes specific usage instructions and any further\n integration requirements\n\nResources for an extension\n\nEvery Firebase project contains several types of \"resources\". Project resources\ncan include things like deployed Cloud Functions, database instances,\nCloud Storage buckets, Cloud Scheduler jobs, and Cloud Secret Manager data.\n\nWhen you install an extension, Firebase creates new *extension-instance-specific*\nresources in your project. These resources are required by the extension to\noperate.\n\nNote that, if you [uninstall an instance of an\nextension](/docs/extensions/manage-installed-extensions#uninstall), all the\nresources that Firebase created specifically for that instance of the extension\nto operate (like a set of functions) are deleted. However, the following are\n***not*** deleted:\n\n- Any artifacts created by the extension (like stored images).\n\n- Any other resources in your project, like a database instance or Cloud Storage\n bucket. Even if the extension interacted with these other resources, they\n are not *extension-specific*, so they aren't deleted if the extension is\n uninstalled.\n\nUsing the Firebase console, the Firebase CLI, or autogenerated SDKs {: #console-vs-cli}\n\nYou can install and manage extensions using\neither the\n[Firebase console](/docs/extensions/install-extensions?platform=console)\nor the\n[Firebase CLI](/docs/extensions/install-extensions?platform=cli),\nor in code using\n[autogenerated SDKs](/docs/extensions/install-extensions?platform=sdk).\n\n| **Action** | **Firebase console** | **Firebase CLI** | **Autogenerated SDK** |\n|----------------------------------------------|----------------------|------------------|-----------------------|\n| View detailed information (pre-installation) | | | |\n| Install | | | |\n| View configuration (post-installation) | | | |\n| Edit configuration | | | |\n| Update version | | | |\n| Uninstall | | | |\n\nNext Steps\n\n- View detailed information about an extension before you install the extension\n ([Extensions Hub](https://extensions.dev/extensions) or\n [Firebase CLI](/docs/extensions/install-extensions#view-details)).\n\n- Install an extension into your Firebase project using either the\n [Firebase console](/docs/extensions/install-extensions?platform=console),\n the [Firebase CLI](/docs/extensions/install-extensions?platform=cli).\n or [autogenerated SDKs](/docs/extensions/install-extensions?platform=sdk)."]]