cli icon indicating copy to clipboard operation
cli copied to clipboard

Project aliases and flags

Open galacticgibbon opened this issue 2 years ago • 0 comments

Is your feature request related to a problem? Please describe. I would like to easily be able to choose which project a command is being executed for

Describe the solution you'd like In firebase-tools, you can create project aliases and use project flags. https://firebase.google.com/docs/cli#project_aliases

So you could create an alias "dev" and "prod" and then easily execute commands for each project: i.e. firebase deploy --only functions -P prod

Additional context I like to leave dev as the default for security, and then explicitly say when I want to use prod

So a normal call to firebase deploy --only functions will use dev alias by default, and then I would have to explicitly do -P prod to deploy to production

galacticgibbon avatar Oct 12 '23 14:10 galacticgibbon