Unable to do Firebase deploy - Error: Invalid Firebase specified

I've faced the same issue (Invalid Firebase Specified) when imported project from old firebase dashboard to their newer console, and fixed it using the following terminal commands,

firebase use --clear
//Clear any previous project selection for firebase-tools

firebase use --add
// Add the newly imported project with a new alias

After clearing and re-adding the project with an alias, i was able to deploy it successfully using

firebase deploy.


First off, fixing your permissions error is fairly simple:

sudo chown -R $USER ~/.config/configstore

Then, to deploy the command is

firebase deploy --project MY_PROJECT_ID

Where MY_PROJECT_ID is the first entry in the 'Project ID / Instance' column of the firebase list table. Check out firebase use --help command to set the default project for a directory


As Chris Raynor mentioned, first fix your permission problem with:

sudo chown -R $USER ~/.config/configstore

My upgrade resulted in the same error ("Invalid Firebase specified"). I found that clearing and re-adding the project solved my problem.

I ran the commands below, after migrating to the new version of firebase and following the initial interactive process.

firebase use --clear

firebase use --add

The "add" option gave me the following interactive prompts:

? Which project do you want to add? my-project-name
? What alias do you want to use for this project? (e.g. staging) staging

After clearing and re-adding, my deploy command worked according to the documentation

firebase deploy

The final working output looked like this:

i  deploying database, hosting
i  hosting: preparing public directory for upload...
✔  hosting: 34 files uploaded successfully
i  starting release process (may take several minutes)...

✔  Deploy complete!

I've recently encountered this problem suddenly while trying to deploy to production it just suddenly shows this message and trying above methods didn't work.

Here's what worked on mine.

First I logged out my firebase account by:

firebase logout

then logged in again

firebase login

then just reselect the project

firebase use project_name

and I can now deploy properly without the problem reoccurring again.