--force
does not apply to firebase deploy --only storage
, so programmatically provision are not possible
#7499
Labels
Environment info
firebase-tools:
13.14.2
(also tested with13.0.0
)Platform: macOS
Test case
I'd really like to provide this, but this is just a empty Firebase project, with nothing in it.
The steps to initate the Firebase project looks something like this:
firebase projects:addfirebase "testproject-dev"
firebase use testproject-dev
gcloud services enable firestore.googleapis.com --project=testproject-dev
firebase firestore:databases:create "(default)" --location "eur3" --project "testproject-dev"
/projects/${project_id}/defaultLocation:finalize?locationId=${location_id}
firebase init storage --project testproject-dev
firebase deploy --only storage --force --project testproject-dev
Steps to reproduce
firebase init storage --project testproject-dev
to initate the Firebase Storage partfirebase deploy --only storage --force --project testproject-dev
Y/n
prompt shows up. That's my problem, as I've added--force
to the statementExpected behavior
I expect the
--force
param to force the IAM roles to be granted without user interaction (edit: fixed the missing 'out').Actual behavior
I'm prompted with:
Even though the
-f, --force
states: "bypass interactive prompts:". I expect and need the prompt to be bypassed and answered withYes
(Y).Right now, I'm unable to make a programmatically provisioned Firebase stack, which I'd like to do. For this project, I'm not going to use Terraform, due to a few known limits around Firebase V2 functions, but also other decisions. I also think the use of
--force
should be applied for this kind of yes/no questions.If
--force
was not meant to handle the IAM Role specific prompt, I expect another flag to enforce a "yes" answer, on a prompt likefirebase deploy storage
. There's possibly other situations, where this applies, too.The text was updated successfully, but these errors were encountered: