In this recipe, we will learn how to set up the Firebase-CLI on our project, and how to initialize it with our project created during the previous recipe:
- Open Terminal (macOS or Linux) or Command Prompt/PowerShell (Windows) and execute the following command on the root folder of your project:
> firebase login
- The Firebase-CLI will open a browser window so you can log in to your Google account, and give access on the part of the Firebase-CLI to your Google Account. (If the browser doesn't open automatically, a link will appear on the Firebase-CLI, copy the link, and then paste it into your browser to continue.)
- Open Terminal (macOS or Linux) or Command Prompt/PowerShell (Windows) and execute the following command on the root folder of your project:
> firebase init
- Now we are initializing the configuration process of the CLI with our project. For the first question of the CLI, we are going to use just the Hosting feature, so we need to select just Hosting...