Firebase CLI: where does the CLI keep the currently selected project?

195 views
Skip to first unread message

DS

unread,
Jul 10, 2017, 6:23:02 PM7/10/17
to Firebase Google Group
When I start using the command line tool on a freshly restarted computer I will have to login and also select a project to work using "firebase use ...".
Is there a way to check whether a project is already selected? 
I am trying to build a snappy wrapper Python script and unnecessarily calling "firebase use..." takes an extra second or two to complete, which I would like to prevent if possible.


Michael Bleigh

unread,
Jul 10, 2017, 6:38:12 PM7/10/17
to Firebase Google Group
You can just pass `--project <project_id>` into any command to sidestep that. As for where it's stored, the value is stored in ~/.config/configstore/firebase-tools.json along with your other session-related configuration.

--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-tal...@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/71ddc1e9-e953-45fa-9174-bf2d295ae83b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages