@jaspero/fb-extra
v1.22.0
Published
Additional CLI commands for interacting with firebase.
Readme
Firebase Extra
This is a CLI tool with useful commands for interacting with firebase. It contains things like managing users and managing firestore data.
Installation
To install the library run:
npm i -g @jaspero/fb-extraInitially you'll need to define a project, do that by running:
fbs use [your-project-id]Commands
Notes on passing Custom Claims JSON
- The argument should be a JSON object. Example: {"role":"admin"}
- On Windows PowerShell, single quotes can be used to avoid escaping double quotes, but PowerShell may pass them differently. This tool now accepts simple single-quoted JSON like '{'role':'admin'}'.
- If you still see "Provided invalid Custom Claims JSON!", try one of the following depending on your shell:
- PowerShell:
- fbs auth uc [email protected] '{"role":"admin"}'
- fbs auth uc [email protected] '{'role':'admin'}'
- CMD:
- fbs auth uc [email protected] {"role":"admin"}
- Bash:
- fbs auth uc [email protected] '{"role":"admin"}'
- PowerShell:
