Brand is the missing CLI for apps using Firebase as its backend. I’ve used it for personal projects and decided to make it open-source. One useful feature is to create multiple fake accounts quickly and editing users with barely any setup.
You can clone Brand and use it from its directory if you want to add more features specific to your needs. Simply use:
git clone https://github.com/phoqe/brand.git
Set GOOGLE_APPLICATION_CREDENTIAL
to the path of your Service Account Key. You can generate one in Firebase Console under Project Settings. For example:
export GOOGLE_APPLICATION_CREDENTIAL=path/to/serviceAccountKey.json
You can set the default locale of Brand. The locale is used in command output and fake user data, e.g., first and last name. You can set the default locale using:
export DEFAULT_LOCALE=en
The locales in use by Faker, the fake user data library, can be found here.
Brand supports the following locales for command output:
en
(default)sv
If Brand doesn’t support the locale, it will default to en
.
Brand is available through brand
in the terminal. For example:
brand --help
Here’s how you would disable a user with the email [email protected]
:
brand disable [email protected]
You can supply an email, phone number, or UID for commands using the id
or ids
argument. For example, when disabling multiple users:
brand disable [email protected] +46762332652 IfqcusddgdPlsXqwiNLq9cestmo1
If automatic ID resolution fails, you can use the ”forcing options“ --email
or --phone-number
:
brand disable --email [email protected]
- Analytics
- Charts
- Dashboard
- Firebase-like
- Database Structure Support
- Automatic Exploration
- Advanced Email Sending
- Custom Claims
MIT