Skip to content

Getting started ​

After these steps, fbrcm will have one working credential, a saved project list, and a cached Remote Config template. The last step previews a change without publishing it. Choose guided setup in the TUI or CLI, or configure the CLI manually.

What you need ​

Two Google Cloud project roles appear during setup:

  • Firebase project. This is the project whose Remote Config you want to manage. fbrcm discovers accessible Firebase projects, so you do not need to know all of their IDs in advance.
  • Quota project. This is the project Google should charge for API quota and billing. You must know this physical project ID before the first discovery, and your Google identity needs serviceusage.services.use on it.

They may be the same physical Google Cloud project. The quota project does not grant access to Remote Config; your identity still needs the appropriate permissions on every Firebase project it manages.

If you do not have a usable quota project, ask your Google Cloud administrator which project to use and for serviceusage.services.use on it. fbrcm cannot perform the first targetless project discovery without one.

You also need one of these credential sources:

  • fbrcm's built-in Google OAuth client in an official release;
  • a Google OAuth Desktop app client JSON;
  • a service-account key JSON; or
  • Google Cloud CLI Application Default Credentials (ADC).

If these terms are unfamiliar, read Authentication and project discovery before choosing a setup path.

Install ​

Install with Homebrew:

sh
brew tap yumauri/tap
brew install --cask fbrcm

Alternatively, run the installer directly:

sh
curl -sSfL https://raw.githubusercontent.com/yumauri/fbrcm/main/install.sh | sh

The macOS and Linux installer verifies the release archive against checksums.txt before extraction, using sha256sum or shasum.

Confirm that the binary is available:

sh
fbrcm --version

Option 1: guided setup in the TUI ​

Start fbrcm without arguments:

sh
fbrcm

On a new profile, the setup screen asks you to:

  1. Choose built-in Google sign-in, imported OAuth, service-account, or gcloud ADC authentication.
  2. Import or validate the selected credentials.
  3. Enter the physical Google Cloud project ID to use as the quota project.
  4. Complete browser authorization when OAuth requires it.
  5. Let fbrcm discover and save the accessible Firebase projects.

After the workspace opens, select a project in the left panel and select a parameter in the main panel. Press ? anywhere to find available actions without memorizing shortcuts.

Run the diagnostic from another terminal if setup reports an error:

sh
fbrcm doctor

Continue with the TUI overview when you want to edit or compare data interactively.

Option 2: guided setup in the CLI ​

Run the line-oriented setup wizard when you want guided onboarding without opening the full TUI:

sh
fbrcm setup

It chooses an authentication method, asks for an identity name and quota project, imports a JSON credential when the method needs one, completes or validates authentication, and discovers accessible Firebase projects. Add --noopen to print an OAuth authorization URL instead of opening it automatically. Rerunning the command resumes a partially configured profile; an already configured profile exits without making a network request.

Manual CLI setup ​

The examples below use these concrete names:

Example valueMeaning
example-auth-nameThe local name fbrcm uses for the credential
example-quota-project-idThe Google Cloud project ID used for quota and billing
example-project-idThe Firebase project ID you want to manage

example-auth-name is not a command or a Google account name. It is the name fbrcm uses to refer to this credential.

1. Add one authentication identity ​

Choose exactly one of the following methods.

Official fbrcm releases include the application's shared OAuth client. Add an identity without creating a Google Cloud client or downloading a client JSON:

sh
fbrcm auth add google example-auth-name \
  --quota-project example-quota-project-id

fbrcm auth login example-auth-name

The final command opens Google's consent flow when authorization is needed.

2. Discover projects ​

Discover accessible Firebase projects and save them in the active profile:

sh
fbrcm projects update

The command uses every configured identity. At this point, that is the identity you just added. Later, fbrcm projects list reads the saved list and fbrcm projects list --update refreshes it before printing.

3. Inspect Remote Config ​

First list the saved projects:

sh
fbrcm projects list

Then replace example-project-id with one Firebase project ID from that output:

sh
fbrcm get --project '=example-project-id'

This lists parameters from exactly that project. To inspect one parameter, add its key:

sh
fbrcm get feature_enabled --project '=example-project-id'

The leading = means exact project matching. It prevents a short name from accidentally matching several projects.

4. Check the complete setup ​

sh
fbrcm doctor

The report checks local files, credentials, quota-project resolution, project discovery, Remote Config access, and Firebase app read access. It checks serviceusage.services.use, cloudconfig.configs.get, cloudconfig.configs.update, firebase.clients.list, and firebase.clients.get.

Preview your first change ​

Remote Config publication replaces a complete template. Start with a dry run, which fetches and validates the candidate but does not publish or save it:

sh
fbrcm update feature_enabled \
  --project '=example-project-id' \
  --type boolean \
  --value true \
  --dry-run

Inspect the matched-item count and diff. When the result is correct, either rerun without --dry-run for an immediate reviewed publication or replace it with --draft to save the change locally.

Where to go next ​