Using multiple firebase accounts - How to manage different terminal logins?

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

Hi - I am currently using multiple firebase accounts with multiple cursor windows open. How can I set things up so when I push in terminal it either logs out and logs back in always or I have it check for the specific account? Is this done in rules? .env?

Steps to Reproduce

I pushed different projects to different firebase accounts

When I push to firebase in terminal I am getting errors.

Expected Behavior

I want it to either always ask me to logout and log back in or to be able to switch accounts in terminal

Operating System

Windows 10/11

Current Cursor Version (Menu → About Cursor → Copy)

Version: 2.1.46 (system setup)
VSCode Version: 1.105.1
Commit: ab326d0767c02fb9847b342c43ea58275c4b1680
Date: 2025-12-02T03:59:29.283Z
Electron: 37.7.0
Chromium: 138.0.7204.251
Node.js: 22.20.0
V8: 13.8.258.32-electron.0
OS: Windows_NT x64 10.0.19045

Does this stop you from using Cursor

No - Cursor works, but with this issue

Hey, thanks for the report. This is configured in the Firebase CLI, not via rules or .env.

Try this:

  1. Add all accounts:
    • firebase login:add
    • check: firebase login:list
  2. For each project, set the default account in its folder:
    • cd <project_folder>
    • firebase login:use - choose the needed account
  3. Select the project:
    • firebase use --add - add an alias and select it
    • or specify once: -P <projectId>
  4. You can set the account and project right in the command:
    • firebase --account=<email> -P <projectId> deploy

Docs:

If errors persist, please send:

  • the exact command you run
  • the full error output from the terminal
  • the result of firebase login:list
  • CLI version: firebase --version

Let me know if this helps.

This topic was automatically closed 22 days after the last reply. New replies are no longer allowed.