Skip to content

Why does firebase login:use <email> require you to be in a Firebase project? #6526

@Yukinosuke-Takada

Description

@Yukinosuke-Takada

I wanted to see all Firebase projects that were associated with another account I've added to the firebase-cli. I used the firebase login:use <email> command but got some error that said I needed to be in a Firebase project. I made a firebase project (firebase init) just to change the account. I find it strange since other firebase login commands do not require you to be in a Firebase project.

[REQUIRED] Environment info

firebase-tools: 12.9.0

Platform: macOS 14.0

[REQUIRED] Test case

I get an error:

Error: Could not determine active Firebase project directory

when I use command:

firebase login:use <email>

in a directory that is not a Firebase project.

[REQUIRED] Steps to reproduce

Go to any directory that is not a Firebase project.

firebase login:use <email>

[REQUIRED] Expected behavior

Should be able to change your account inside firebase-cli outside of Firebase projects.

[REQUIRED] Actual behavior

Gives Error that says it requires you to be in a Firebase project

Error: Could not determine active Firebase project directory

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions