Practice - 5 Tasks
Answer the questions below
1fill in blank
easyComplete the command to install the Firebase CLI globally using npm.
Firebase
npm install -g [1] Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'firebase-cli' instead of 'firebase-tools'.
Trying to install 'firebase' which is the SDK, not the CLI.
✗ Incorrect
The correct package name to install the Firebase CLI globally is 'firebase-tools'.
2fill in blank
mediumComplete the command to log in to Firebase using the CLI.
Firebase
firebase [1] Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'firebase init' instead of 'firebase login'.
Using 'firebase deploy' which is for deployment, not login.
✗ Incorrect
The command to log in to Firebase CLI is 'firebase login'.
3fill in blank
hardFix the error in the command to initialize a Firebase project in the current directory.
Firebase
firebase [1] Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'firebase deploy' instead of 'firebase init'.
Using 'firebase start' which is not a valid Firebase CLI command.
✗ Incorrect
The correct command to initialize a Firebase project is 'firebase init'.
4fill in blank
hardFill both blanks to complete the command that deploys Firebase functions and hosting.
Firebase
firebase deploy --only [1],[2]
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Including 'database' or 'storage' when only functions and hosting are needed.
Forgetting the comma between the features.
✗ Incorrect
To deploy only functions and hosting, use 'functions' and 'hosting' separated by a comma.
5fill in blank
hardFill all three blanks to complete the command that sets the active Firebase project to 'my-project'.
Firebase
firebase [1] [2] [3]
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using '--alias' instead of '--add'.
Placing the options in the wrong order.
✗ Incorrect
The command 'firebase use my-project --add' sets and adds the project as active.