What happens when you run firebase login for the first time?
Think about how CLI tools usually authenticate users with cloud services.
Running firebase login opens a browser for Google sign-in and saves your credentials locally for future commands.
You want to initialize a Firebase project in your local folder. Which command correctly starts this process?
Initialization usually means setting up configuration files.
firebase init sets up Firebase configuration files and services in your project folder.
You have two Firebase projects and want to switch between them using Firebase CLI. What is the best way to manage this?
Think about how CLI tools handle multiple environments or projects.
firebase use --add lets you add multiple projects and switch between them easily in your local setup.
For automated deployment in a CI/CD pipeline, which Firebase CLI authentication method is recommended?
Interactive login is not possible in automated pipelines.
Generating a CI token with firebase login:ci allows secure non-interactive authentication in pipelines.
What happens if you run firebase deploy in a folder that has no Firebase project initialized?
Think about what is needed before deploying with Firebase CLI.
Without initialization, Firebase CLI cannot find project settings and will show an error to prevent accidental deployment.