How to Install the Firebase CLI on Windows

ในตัวอย่างนี้ อันดับแรก ผมไปสร้าง Project ก่อนที่ firebase แล้วเลือกสร้าง Hosting ก่อน
https://firebase.google.com/

Install the Firebase CLI
You can install the Firebase CLI using a method that matches your operating system, experience level, and/or use case. Regardless of how you install the CLI, you have access to the same functionality and the firebase command.
Download Here for Windows

To download and run the binary for the Firebase CLI, follow these steps:
1. Download the Firebase CLI binary for Windows.
2. Access the binary to open a shell where you can run the firebase command.
3. Continue to sign in and test the CLI.

ขั้นตอนติดตั้ง
1. หลังจาก Download เสร็จ ด้วยBrowser Google Chrome ให้ Keep เพื่อเก็บไฟล์ติดตั้ง

2. Install Click file : firebase-tools-instant-win.exe

ส่วนนี้ให้ตอบ Y แล้วกด Enter

3. จะมี Pop-up เพื่อ Signin หรือ Click URL เพื่อ Authen และ เชื่อมต่อกับ Firebase

หน้า Sign-in

กด อนุญาต

4. เข้าสู่ระบบ เข้า โดยดับเบิ้ลคลิ๊ก firebase-tools-instant-win.exe ==> แล้วพิมพ์ firebase login แล้วกด enter

firebase projects:list เพื่อดู Project ทั้งหมด

เท่านี้ ก็สามารถเชื่อมต่อ Firebase ผ่าน CLI ได้แล้ว โดยดัลเบิ้ลคลิ๊ก

ครั้งถัดไปเมื่อต้องการเชื่อมต่อหรือใช้งาน CLI ให้ทำดังนี้

พิมพ์ firebase เพื่อบอกว่า เราต้องการใช้ firebase
เข้าสู่ระบบ พิมพ์ firebase login

Ref: https://firebase.google.com/docs/hosting/quickstart

Comment

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.