Firebase ".firebaserc" project alias not found in CI
You passed an alias like --project staging, but .firebaserc on the runner has no such alias. Aliases are defined in .firebaserc; if that file is missing or the alias is not in it, the CLI cannot resolve the project.
What this error means
A command fails with "Error: Unable to use alias staging, run firebase use --add" or "unknown project alias".
firebase
Error: Unable to use alias staging, run firebase use --add to set up a new project alias.Common causes
The alias is not defined in .firebaserc
The projects map in .firebaserc has no entry for the alias you passed to --project.
.firebaserc is not present on the runner
If .firebaserc is gitignored or not checked out, no aliases exist in CI.
How to fix it
Commit the alias mapping
- Add the alias to
.firebasercmapping it to a real project id. - Commit
.firebasercso CI has it. - Deploy with
--project <alias>or the real project id.
.firebaserc
{
"projects": { "default": "my-project", "staging": "my-project-staging" }
}Pass the real project id instead of an alias
Bypass aliases entirely by passing the concrete project id in CI.
Terminal
firebase deploy --project my-project-stagingHow to prevent it
- Commit
.firebasercso aliases exist in CI. - Prefer explicit project ids over aliases in automated deploys.
- Keep alias names consistent across environments.
Related guides
Firebase "No currently active project" in CIFix Firebase "Error: No currently active project" in CI - no project was selected, so pass --project explicit…
Firebase "Invalid project id" in CIFix Firebase "Error: Invalid project id" in CI - the project id passed to --project is malformed or does not…
Firebase hosting "Must supply a target" in CIFix Firebase "Error: Must supply a target" in CI - firebase.json uses multiple hosting targets but none was a…