Practice - 5 Tasks
Answer the questions below
1fill in blank
easyComplete the code to create a preview channel with Firebase Hosting.
Firebase
firebase hosting:channel:create [1] Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'deploy' instead of a channel name.
Using 'init' or 'serve' which are unrelated commands.
✗ Incorrect
The command 'firebase hosting:channel:create preview-123' creates a preview channel named 'preview-123'.
2fill in blank
mediumComplete the command to deploy to a specific preview channel.
Firebase
firebase hosting:channel:deploy [1] Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using branch names like 'main' or 'production' instead of the preview channel name.
Using 'default' which is not a preview channel.
✗ Incorrect
Deploying to 'preview-123' sends your site to that preview channel.
3fill in blank
hardFix the error in the command to list all preview channels.
Firebase
firebase hosting:channel:[1] Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'show' which is not a valid subcommand here.
Using 'deploy' or 'create' which perform different actions.
✗ Incorrect
The correct command to list preview channels is 'firebase hosting:channel:list'.
4fill in blank
hardFill both blanks to delete a preview channel safely.
Firebase
firebase hosting:channel:[1] [2]
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'remove' instead of 'delete' as the command.
Using wrong channel names that do not exist.
✗ Incorrect
Use 'firebase hosting:channel:delete preview-123' to delete the preview channel named 'preview-123'.
5fill in blank
hardFill all three blanks to create, deploy, and open a preview channel.
Firebase
firebase hosting:channel:[1] [2] && firebase hosting:channel:[3] [2] --open
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'list' instead of 'deploy' for the second command.
Using different channel names in create and deploy commands.
✗ Incorrect
First create the preview channel 'preview-abc', then deploy to it and open the preview URL.