I want to ask if it’s possible to create a Firebase project from the command line and automatically upgrade it to the Blaze plan? The official docs only refer to creating a Firebase project using the online console, however, it does not provide guidance on how to create / initialize the project using the CLI.
Is there a way to do that using the CLI?
2
Answers
Yes, you can do it this way:
firebase init hosting
Select
Create a new project
and then follow the instructionsThe CLI reference documentation says there is a command
projects:create
that:Running the command with help:
You should arrange for the CLI to have an auth token available for the account that should own the project, as suggested by the documentation.
There are no documented billing operations provided by the Firebase CLI. You will likely need to manually associate your credit card with the project after you create it.
Also see: Is it possible to upgrade my project from spark to blaze using firebase or gcp CLI?