Skip to content
This repository was archived by the owner on Mar 2, 2021. It is now read-only.

add docs on export and import database & users #76

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -213,3 +213,32 @@ Firebase allowed this project to come to life without having the need to spend t
mix radio4000 channels together

Do you want your project to appear here? Send a pull request or get in touch.

## Database operations

You will need to have `firebase-tools` installed globally with npm; look at the help for all commands with `--help`.

### Export

- `firebase projects:list`
- `firebase use <project-name>`
- `firease database:get /`, where `/` is the path in the database, to base the export.


### Import

- `firebase projects:list`
- `firebase use <project-name>`
- `firease database:set / <datafile>`, where `/` is the path in the database, to import to.

## User operations

### Export

- `firebase use <project-name>`
- `firebase auth:export users.json`

### Import

- `firebase use <project-name>`
- `firebase auth:import --hash-algo <> --hash-key <> --salt-separator <> --rounds <> --mem-cost <> --parallelization <> --block-size <> --dk-len<> --hash-input-order <> <datafile>`