0

I am trying to deploy my Firebase Cloud Functions to my project. I ran, from the command line:

firebase deploy

I then received the below error; I do not know how to associate with my Firebase project. I ran

firebase login

as well, and can confirm I am indeed logged in.

enter image description here

Doug Stevenson
  • 297,357
  • 32
  • 422
  • 441
tccpg288
  • 3,242
  • 5
  • 35
  • 80
  • 1
    did you try the commands in the error? – Peter Haddad Feb 25 '18 at 17:54
  • I can add my project name to it, however unsure of the syntax – tccpg288 Feb 25 '18 at 17:55
  • 1
    What directory did you cd to? Does it contain .firebaserc and firebase.json? – Doug Stevenson Feb 25 '18 at 17:57
  • I am currently in the terminal within Android studio, so the root directory of my android project – tccpg288 Feb 25 '18 at 17:58
  • 1
    Did you ran 'firebase init functions' command? – floyd Feb 25 '18 at 18:00
  • 1
    The command is literally `firebase use -add`. That will ask you for a name (I typically say `default`) and then show you a list of the Firebase projects associated with your account. – Frank van Puffelen Feb 25 '18 at 18:01
  • Thanks, I had to run init and select the project again. I was previously deploying with no issues and wasn't sure what commands I had to run again. Every time I re-open Android Studio I realize I will have to run init. I am not sure if it is best practice to run the cloud functions within Android Studio – tccpg288 Feb 25 '18 at 18:09

1 Answers1

1

Run...

firebase init

And follow the steps.

nachshon f
  • 3,540
  • 7
  • 35
  • 67