2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Firebase とっても初心者コマンド

Last updated at Posted at 2019-06-17

Firebase 初心者コマンド

個人的なメモです。詳しくはFirebase CLI リファレンスへどうぞ。

npmでfirebaseインストール

xxxxxxxx $ npm i -g firebase-tools 

firebaseにログイン(Google Accountログイン&FirebaseのProjectは事前準備の上叩く)

xxxxxxxx $ firebase login

firebaseを初期化。index.htmlと404.htmlが自動生成される

xxxxxxxx $ firebase init

現存するプロジェクトを全てリストで出す

xxxxxxxx $ firebase list

Hosting(アップロードする)プロジェクトを指定する

xxxxxxxx $ firebase use [プロジェクト名]

Firebaseにデプロイ。2番目のコマンドはHostingのみデプロイしたい時に叩く。

xxxxxxxx $ firebase deploy
xxxxxxxx $ firebase deploy --only hosting

これだけあればHello,Worldには困らないはず。

2
2
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
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?