check connected firebase projects in terminal code example
Example 1: firebase cli windows
npm install -g firebase-tools
Example 2: firebase deploy with token
# first get token
firebase login:ci
# deploy with token where $FIREBASE_TOKEN is your token
firebase deploy --token $FIREBASE_TOKEN --non-interactive