Project specified with -P
or --project
is ignored when using init database
#3870
Labels
-P
or --project
is ignored when using init database
#3870
[REQUIRED] Environment info
firebase-tools: 9.21.0
Platform: WSL (Debian buster) on Windows
[REQUIRED] Test case
Create a project directory with two projects and try to initialise the database for the non-default project using
firebase init database -P <projectId>
. In the below example, assume there is a default projectdev
and another projecttest
.[REQUIRED] Steps to reproduce
dev
as the default project, runfirebase init database
. Database is correctly initialized.firebase init database -P test
. The tool incorrectly initializes database fordev
project again, ignoring the specified project. The required APIfirebasedatabase.googleapis.com
is not enabled on thetest
project.firebase use --add
and set thetest
project todefault
alias.firebase init database
. The tool correctly initializes database fortest
project (because it is the default project).[REQUIRED] Expected behavior
firebase init database -P <projectId>
initializes Firebase Realtime Database for the specified project.[REQUIRED] Actual behavior
firebase init database -P <projectId>
initializes Firebase Realtime Database for the default project.The text was updated successfully, but these errors were encountered: