LoginSignup
2
1

More than 5 years have passed since last update.

Firebase tips(Command)

Last updated at Posted at 2017-09-16

FIREBASE TIPS

Install

command
npm install -g firebase-tools

Setting

1. Login

command
firebase login

2. Init

command
firebase init

3. Current own state

command
firebase list

Database

1. Database push

object name is determined automatically.

test.json
{
    "no"    : 1,
    "name" : "test"
}
command
firebase database:push /coffeeandcode-japan c:/firebase/test.json

result
push.png

2. Database set

It can make object name.

command
firebase database:set /coffeeandcode-japan/aaaa  c:/firebase/test.json

result
set.png

3. Database update

command
firebase database:update /coffeeandcode-japan/aaaa  c:/firebase/update.json
update.json
{
    "no"    : 1,
    "name" : "update"
}

result
update result

4. Database get

command
firebase database:get /
firebase database:get /coffeeandcode-japan
firebase database:get /coffeeandcode-japan/-Ku7DioDNyP18SmP9e73

5. Database remove

command
firebase database:remove /coffeeandcode-japan/-Ku7DioDNyP18SmP9e73
2
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
1