firebase database:set
firebase database:set /import data.json
/import
--data
firebase database:set /import --data '{"foo": "bar baz"}'
echo '{"foo": "bar baz"}' | firebase database:set /import --confirm
--confirm
database:set
/messages
firebase database:get /messages
firebase database:get /messages > messages.json firebase database:get /messages --output messages.json
firebase database:get /messages --pretty
firebase database:get /messages --order-by-value date
firebase database:get --help
firebase database:push /messages --data '{"name":"Doug","text":"I heart Firebase"}'
database:update
firebase database:update /users/-L-7Zl_CiHW62YWLO5I7 --data '{"name":"CodingDoug"}'
database:remove
rm -rf /
firebase database:remove / --confirm
database:get
firebase --project myproject-dev database:get / | \ firebase --project myproject-staging database:set / --confirm
--project
function transfer_to() { local src_db="${1}" local dest_db="${2}" local path="${3:-/}" firebase database:get --project "$src_db" "$path" | firebase --project "$dest_db" database:set "$path" --confirm }
transfer_to myproject-dev myproject-staging