: .
, firebase, firebase login:ci --no-localhost CLI firebase FIREBASE_TOKEN ( $FIREBASE_TOKEN).
npm install -g firebase-tools
firebase deploy
. , ? .
firebase/firebase-tools README : CI-.
Firebase , , CI .
CLI Firebase. firebase
login:ci, ( CLI ).
. firebase login:ci --no-localhost
, CI . Firebase :
FIREBASE_TOKEN, . --token <token> CI.
- 👉 NOTE You MUST put the marker in IIF quotation marks with the --token flag
🔥 👉BIGGER NOTE DO NOT set the environment variable $ or you will receive a minor error message below.
Your CLI authentication needs to be updated to take advantage of new features.
Please run firebase login --reauth
Error: Command requires authentication, please run firebase login
The priority order for loading the token is a flag, an environment , an active project.
👌 The recommendation is to use an environment variable, so the secret token is not saved and is not displayed in the logs.
source
share