ในตัวอย่างนี้ อันดับแรก ผมไปสร้าง 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




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




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



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



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