Firehouse is a command-line interface (CLI) tool written in Go for managing and interacting with your Firebase project as an administrator. It provides a powerful and convenient way to perform various administrative tasks directly from your terminal.
brew tap izqalan/izqlan
brew install firehouse
to update:
brew update
brew upgrade firehouse
Firehouse uses the firehouse service -s command to load a service account. Here's the syntax:
firehouse service -s path/to/service-account.json
Replace path/to/service-account.json
with the actual file path of your service account JSON key file. This file contains the credentials that Firehouse uses to authenticate with Firebase on your behalf.
Once you've loaded a service account, use the firehouse service get command to verify:
firehouse service get
This command should display the path to the currently loaded service account JSON file. If no service account is loaded, the output will be "Not Loaded".
Remember:
- Firehouse stores the loaded service account information in memory until you either load a different service account or exit the Firehouse CLI.
- Reloading the same service account won't affect the current session.
To create a new user account, use the firehouse auth create command. Here's the syntax:
firehouse auth create --email some@example.com --password somepassword
Optionally, you can also provide the following additional parameters:
--email, -e
- The user's email address.--password, -p
- The user's password.--display-name, -d
- The user's display name.--photo-url, -o
- The user's photo URL.--phone-number, -n
- The user's phone number.--disabled, -s
- A boolean value indicating whether the user account is disabled.--email-verified, -v
- A boolean value indicating whether the user's email is verified.
To update an existing user account, use the firehouse auth update command. Here's the syntax:
firehouse auth update --uid yuBmdx6fnddb64 --email new.mail@examlpe.com
Optionally, you can also provide the following additional parameters:
--email, -e
- The user's email address.--password, -p
- The user's password.--display-name, -d
- The user's display name.--photo-url, -o
- The user's photo URL.--phone-number, -n
- The user's phone number.--disabled, -s
- A boolean value indicating whether the user account is disabled.--email-verified, -v
- A boolean value indicating whether the user's email is verified.
To delete an existing user account, use the firehouse auth delete command. Here's the syntax:
firehouse auth delete --uid yuBmdx6fnddb64
Replace yuBmdx6fnddb64
with the actual user ID of the user account you want to delete.