Make sure to review the differences in the supported actions for the Firebase CLI and Firebase console.
Before you begin
If you haven't already, add Firebase to your project.
Take note of either your Firebase project ID or previously configured project alias.
Step 1: View detailed information about an extension
This step is optional, but strongly recommended.
Before installing a Firebase Extension, we recommend that you review detailed information about the extension, including:
- How the extension works, any pre-installation tasks, and details about the extension
- General identifying information and description
- Whether the extension's tasks require a billing account
- Google services (APIs) and access roles required for operation
- Resources created for the extension (like functions)
- Descriptions of user-configurable parameters
To view an extension's detailed information:
Run the extension-info command from anywhere on your computer:
firebase ext:info extension-name
Step 2: Install an extension
During the installation process, you'll be prompted to review the basic specifications for the extension (such as APIs enabled, resources created, access granted, etc.). You'll be notified of any billing requirements, and you'll also be prompted to specify values for the extension's configurable parameters.
Run the extension-install command. If prompted, enter parameter values to customize the extension instance.
firebase ext:install extension-name --project=projectId-or-alias
Bypass the interactive terminal prompts for parameter values during installation
.envfile (for example,
params.env) that defines your parameter values. Save the file locally.
- Declare each parameter by its
paramvalue found in the extension's
- Include values for all the parameters.
- Follow dotenv syntax.
For example, for the Translate Text extension, you could create this
# params.env LOCATION=us-east1 LANGUAGES=fr,es COLLECTION_PATH=translations INPUT_FIELD_NAME=input OUTPUT_FIELD_NAME=output
- Declare each parameter by its
Run the extension-install command with the
--paramsflag. For example, to install the Translate Text extension, run the following command:
firebase ext:install firestore-translate-text --params=path/to/params.env --project=projectID-or-alias
After the installation is complete, review instructions for using your extension, which may include some required post-installation tasks.
Find these instructions in your extension's postinstall details page in the Extensions dashboard of the Firebase console (the specific link to the dashboard is displayed in the terminal after installation).
You can also find these instructions in the
POSTINSTALL.mdfile included in the extension's source directory.
If applicable, these instructions will tell you how to test out your extension (look for a See it in action section).
View the details and the configuration of your installed extension in the Firebase console.
Monitor the activity of your installed extension, including checks on its health, usage, and logs.
Using the Firebase CLI, manage your installed extension. You can reconfigure or uninstall your extension, as well as update your extension to the latest version.
Using the Firebase console, manage your installed extension. For official Firebase extensions, you can reconfigure or uninstall your extension, as well as update your extension to the latest version.