From da960896b1dc961daea75be7fb640732a605f799 Mon Sep 17 00:00:00 2001 From: hugurp Date: Tue, 10 Nov 2020 17:54:56 +0100 Subject: [PATCH] add docs on export and import database & users --- README.md | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/README.md b/README.md index 438c771..eef47b4 100644 --- a/README.md +++ b/README.md @@ -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 ` +- `firease database:get /`, where `/` is the path in the database, to base the export. + + +### Import + +- `firebase projects:list` +- `firebase use ` +- `firease database:set / `, where `/` is the path in the database, to import to. + +## User operations + +### Export + +- `firebase use ` +- `firebase auth:export users.json` + +### Import + +- `firebase use ` +- `firebase auth:import --hash-algo <> --hash-key <> --salt-separator <> --rounds <> --mem-cost <> --parallelization <> --block-size <> --dk-len<> --hash-input-order <> `