Questions tagged [firebase-cli]

The Firebase CLI provide a variety of tools for managing, viewing, and deploying to Firebase projects, as well as a set of emulators for Firebase products. It's available via the npm module firebase-tools.

These are the Firebase Command Line (CLI) Tools. They can be used to:

  • Administer your Firebase account

  • Interact with Firebase Hosting, our product to host your static HTML, JS, CSS, images, etc.

  • Interact with the Firebase Database, to read and write JSON data and deploy security rules

  • Interact with Firebase Storage, to read and write files and deploy security rules

  • Deploy Cloud Functions for Firebase code

  • Emulate Cloud Functions and Cloud Firestore locally for use in development and testing.

See also:

Related tags

814 questions
190
votes
4 answers

HTTP Error: 401 while setting up firebase cloud functions for android project

I`m trying to set up firebase functions, but I get an error after running firebase init. Error: HTTP Error: 401, Request had invalid authentication credentials. Expected OAuth 2 access token, login cookie or other valid authentication credential.…
M.Ali
  • 8,815
  • 5
  • 24
  • 42
141
votes
1 answer

What's the purpose of .firebase/hosting. ALPHANUM.cache

Today I deployed firebase hosting. After deployment, I noticed firebase creates file of .firebase/hosting.ALPHANUM.cache, where ALPHANUM is actually some random baseNN ish value. Question What is the purpose of this file? More especially, can I add…
Yuki Inoue
  • 3,569
  • 5
  • 34
  • 53
75
votes
9 answers

Is Cloud Functions in Firebase Free or Not (Cloud Functions deployment requires the pay-as-you-go (Blaze) billing plan)

When i make my first deploy function I can't deploying Because I have Error Asks me to make Upgrade to my account to Blaze I need to Know Can i deploy Function when i use free account?? Output: i deploying functions i functions: ensuring required…
mohmmed ali
  • 805
  • 1
  • 5
  • 10
70
votes
20 answers

Error: Could not load the default credentials (Firebase function to firestore)

I am attempting to write an onCall function for Firebase Cloud Functions that performs advanced querying tasks on a firestore database (i.e. checking a text query up against AutoML natural lang to get a category, etc) but I keep running into a…
51
votes
14 answers

"Firebase cannot be loading because running scripts is disabled on this system", VSCode on Windows

I have installed the firebase tools, however whenever I try to initialize it in my rootfolder, using the terminal from Vscode, I receive the following error. Why is that?
user13030313
42
votes
9 answers

400 Billing account for project is not found. Billing must be enabled for activation of service(s)

I am create API with firebase via this tutorial here. On I run: firebase deploy I get this error on the command line: HTTP Error: 400, Billing account for project '381106441303' is not found. Billing must be enabled for activation of service(s)…
Hao
  • 421
  • 1
  • 4
  • 4
42
votes
8 answers

ESLint error while trying to deploy firebase functions

I tried deploying a firebase functions but it keeps failing due to some issue with ESLint. I have also tried googling the answer but everything I am seeing is all Greek to me. I have also stumbled on this and this answer but it appears they're not…
X09
  • 3,827
  • 10
  • 47
  • 92
39
votes
6 answers

Can't deploy Firebase functions (Failed to fetch Run service undefined)

Can't deploy Firebase functions. I have two project aliases, it's working fine for the first project (dev), but not for the second (prod). Whenever I write firebase deploy --only functions I get the following message i deploying functions i …
39
votes
10 answers

Firestore/Firebase Emulator Not Running

I'm trying to test my functions locally using the guide listed here https://firebase.google.com/docs/functions/local-emulator I have installed the latest firebase-tools using npm install -g firebase-tools In my package.json I confirmed to be…
39
votes
18 answers

Firebase deploy errors starting with non-zero exit code (space in project path)

I was having issues with firebase deploy command recently. After firebase deploy command all others were being deployed except firebase (storage, database etc) So I decided to reinstall firebase to fix this situation but after reinstall my problem…
Faruk
  • 773
  • 1
  • 6
  • 20
34
votes
1 answer

Firebase serve --only functions VS local emulator to run cloud functions locally?

Up until now I've been doing the following to use and test my functions locally during development: I leave this running in one terminal: firebase serve --only functions And I add this on my client code when I'm initializing my Firebase app: const…
cbdeveloper
  • 27,898
  • 37
  • 155
  • 336
33
votes
10 answers

New project not showing on firebase CLI

I have recently had an issue with my firebase account where any new projects don't show in the CLI when I run firebase init. I deleted a project I didn't need, and that updated immediately, any help is greatly appreciated!
Max S.
  • 455
  • 1
  • 5
  • 10
30
votes
3 answers

Initializing firebase CLI Features in an existing Firebase project directory

I am trying to add features "Hosting" into a Firebase project file which has already installed Functions. So I want to know if I can do this with Firebase Init. or this will erase my existing firebase function. Is there anyway that I can do this…
28
votes
3 answers

Firebase deploy could not locate firebase.json

so, im a newbie in programming and still learning some stuff (i use windows btw) i try to make an app, connect it to firebase. after setting up everything its time to setting the CLI good news : i successfully setting up everything from node to nvm…
Raymond Kristanto
  • 547
  • 2
  • 5
  • 7
27
votes
3 answers

Firebase Project Initialization Error: Cloud resource location is not set for this project

I tried to find a quick answer to this question but couldn't find anything. I am trying to set up an Ionic application to use an existing Firebase project and when running firebase init in the windows console I get this message: Error: Cloud…
pasx
  • 2,718
  • 1
  • 34
  • 26
1
2 3
54 55