{"id":15294828,"url":"https://github.com/jaspero/fb-extra","last_synced_at":"2026-01-25T01:01:28.616Z","repository":{"id":57120413,"uuid":"394547052","full_name":"Jaspero/fb-extra","owner":"Jaspero","description":"Additional CLI commands for interacting with firebase.","archived":false,"fork":false,"pushed_at":"2024-02-22T13:51:20.000Z","size":159,"stargazers_count":2,"open_issues_count":3,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-12-01T23:38:09.868Z","etag":null,"topics":["cli","firebase"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Jaspero.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":["Jaspero"]}},"created_at":"2021-08-10T06:22:12.000Z","updated_at":"2023-01-10T19:07:17.000Z","dependencies_parsed_at":"2023-01-22T22:15:49.425Z","dependency_job_id":null,"html_url":"https://github.com/Jaspero/fb-extra","commit_stats":null,"previous_names":[],"tags_count":32,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jaspero%2Ffb-extra","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jaspero%2Ffb-extra/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jaspero%2Ffb-extra/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jaspero%2Ffb-extra/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Jaspero","download_url":"https://codeload.github.com/Jaspero/fb-extra/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230431163,"owners_count":18224669,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","firebase"],"created_at":"2024-09-30T17:07:15.903Z","updated_at":"2026-01-25T01:01:28.601Z","avatar_url":"https://github.com/Jaspero.png","language":"JavaScript","funding_links":["https://github.com/sponsors/Jaspero"],"categories":[],"sub_categories":[],"readme":"# Firebase Extra\n\nThis is a CLI tool with useful commands for interacting with firebase. It contains things like managing users and managing firestore data.\n\n## Installation\n\nTo install the library run:\n\n```\nnpm i -g @jaspero/fb-extra\n```\n\nInitially you'll need to define a project, do that by running:\n\n```\nfbs use [your-project-id]\n```\n\n## Commands\n\n\u003ctable\u003e\n  \u003ctr\u003e\n    \u003cth\u003eCommand\u003c/th\u003e\n    \u003ctd\u003eDescription\u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003cth colspan=\"2\"\u003eAuth\u003c/th\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003efbs auth (create-user|cu) {email} {password} [custom claims]\u003c/td\u003e\n    \u003ctd\u003eAdds a new email/password user\u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003efbs auth (update-claims|uc) {id|email} [custom claims]\u003c/td\u003e\n    \u003ctd\u003eUpdate users custom claims\u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003efbs auth (change-password|cp) {id|email} {new-password}\u003c/td\u003e\n    \u003ctd\u003eChanges the users password\u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003efbs auth (remove-user|ru) {id|email}\u003c/td\u003e\n    \u003ctd\u003eRemoves a user by email or id\u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctr\u003e\n    \u003ctd\u003efbs auth (remove-users|rus) [excluded]\u003c/td\u003e\n    \u003ctd\u003eRemoves all users except for users on the exclusion list\u003c/td\u003e\n  \u003c/tr\u003e\n    \u003ctd\u003efbs auth (list-users|lu) [regex search] [page-size]\u003c/td\u003e\n    \u003ctd\u003eLists users in descending order. Page size defaults to 20\u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003cth colspan=\"2\"\u003eFirestore\u003c/th\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003efbs firestore (add-document|ad) {collection} {json|path}\u003c/td\u003e\n    \u003ctd\u003eCreates a document in the desired collection\u003c/td\u003e\n  \u003c/tr\u003e\n\u003c/table\u003e\n\n## Notes on passing Custom Claims JSON\n\n- The \u003ccustom-claims\u003e argument should be a JSON object. Example: {\"role\":\"admin\"}\n- 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'}'.\n- If you still see \"Provided invalid Custom Claims JSON!\", try one of the following depending on your shell:\n  - PowerShell:\n    - fbs auth uc user@example.com '{\"role\":\"admin\"}'\n    - fbs auth uc user@example.com '{'role':'admin'}'\n  - CMD:\n    - fbs auth uc user@example.com {\"role\":\"admin\"}\n  - Bash:\n    - fbs auth uc user@example.com '{\"role\":\"admin\"}'\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaspero%2Ffb-extra","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjaspero%2Ffb-extra","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaspero%2Ffb-extra/lists"}