firebase-multi
firebase-multi copied to clipboard
Support for multiple `firebase login` on one machine, leveraging `firebase login:ci`
firebase-multi
Firebase CLI multiple login helper. Supports running multiple projects of different accounts from the same machine, leveraging firebase login:ci
Usage
- Install this module globally by running
yarn add -g firebase-multiornpm i -g firebase-multi - Run
firebase login:ciand complete login flow until you get the firebase ci token in your terminal. - Run
firebase-multi set <your-project> <firebase-ci-token> - Run in terminal/package.json script:
firebase-multi use <your-project> firebase deploy
Supported Commands
set <firebase-project> <ci token>
Saves the specified token for the specified firebase-project
get <firebase-project>
Prints the token for the specified firebase-project
use <firebase-project> <command>
set FIREBASE_TOKEN env with the project token and run the command. If FIREBASE_TOKEN is already set, this command won't override it.
unset <firebase-project>
deletes the stored token for the specified project.
License
Copyright (c) 2020 Roi Nagar. Released under the MIT license. See LICENSE for details.