Firebase-tools: firebase emulators:start --only hosting:TARGET_NAME command does not work

Created on 14 Nov 2020  路  2Comments  路  Source: firebase/firebase-tools

First, I did add a custom target by running firebase target:apply demo my-project. However, when running firebase emulators:start --only hosting:demo I receive the following error message:

Error: hosting:demo is not a valid emulator name, valid options are: ["auth","functions","firestore","database","hosting","pubsub"]

As per documentation (https://firebase.google.com/docs/hosting/multisites?authuser=0#cli-commands-with-deploy-targets) firebase emulators:start --only hosting:TARGET_NAME should emulate the Hosting content and configuration of the specified Hosting site at a locally hosted URL.

hosting bug

All 2 comments

This issue does not seem to follow the issue template. Make sure you provide all the required information.

@motiejunas thanks for reporting this, seems like a bug in the argument parser!

Was this page helpful?
0 / 5 - 0 ratings