firebase-tools | The Firebase Command Line Tools | Authentication library
kandi X-RAY | firebase-tools Summary
kandi X-RAY | firebase-tools Summary
The Firebase Command Line Interface (CLI) Tools can be used to test, manage, and deploy your Firebase project from the command line. To get started with the Firebase CLI, read the full list of commands below or check out the documentation.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of firebase-tools
firebase-tools Key Features
firebase-tools Examples and Code Snippets
npm install firebase-functions@latest firebase-admin@latest --save npm
install -g firebase-tools
name: CI/CD
on:
push:
branches: [ deploy]
pull_request:
branches: [ deploy]
workflow_dispatch:
jobs:
main:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
# Environment variables
npm outdated -g --depth=0
Package Current Wanted Latest Location
firebase-tools 9.0.1 9.1.0 9.1.0 global
npm install -g firebase-tools
npm uninstall -g angular-cli
npm cache clean
npm install -g @angular/cli@latest
rm -rf node_modules dist
npm uninstall --save-dev angular-cli
npm install --save-dev @angular/cli@latest
npm install
ng update [this wasn't working so I just
image: node:alpine
deploy_production:
stage: deploy
environment: Production
only:
- master
script:
- npm install
- npm i -g firebase-tools
- firebase deploy --non-interactive --token "" --project
npm install -g firebase-tools
npm install -g firebase-tools
Community Discussions
Trending Discussions on firebase-tools
QUESTION
After upgrading to Angular 13 the application no longer works during runtime. From what I've read NODE_DEBUG is Webpack specific and for some reason is not recognized when running the application with an 'ng serve'. I've also recently upgraded to macOS Monterey. I've very stuck at the moment....
package.json
...ANSWER
Answered 2021-Dec-20 at 05:04Try to delete your node_modules folder and run npm install again.
If still not working try to downgrade the node version to 12.20.x and check.
QUESTION
Below is my firebase function:
...ANSWER
Answered 2022-Mar-02 at 16:47You don't have to pass user's UID in callable cloud function. The user must be logged in with Firebase authentication and Firebase SDKs will take care of the rest.
Can you try logging current user in deleteAccount
function before calling cloud function just to ensure user is logged in? Also context.auth.uid
is UID of user that is calling the function. If you want to access the userId that you are passing in the function, refactor the code as shown below.
The deleteUser()
function would take only 1 parameter that's the data you want to pass in Cloud functions.
QUESTION
For some reason, I can't use the Flutterfire CLI to configure an ios app on firebase. I've done this before but this time I'm gettings this error
...ANSWER
Answered 2022-Feb-15 at 16:08It's an authentication issue. Just logout firebase CLI and log in again.
To logout :
QUESTION
all of a sudden my firebase functions have stopped deploying
the logs I see are below. i have tried deploying multiple times and upgrading packages etc but no luck. don't see anything useful in the logs either
...ANSWER
Answered 2021-Nov-16 at 12:34So, I decided to delete the latest function that i added and do a deploy for rest of the previously deployed unchanged functions in my index.ts. When i did that it gave me a warning that the new function that i added is not in my index.ts so should i delete that?
This means the error was kind of bogus and function actually got deployed. i headed over to the console and saw that function was indeed deployed though had some missing dependency error.
LEARNING: even with deployment showing failed with errors, do take a look at the firebase console.
QUESTION
I'm trying to create a Firebase Function but I'm running into a deploy error, even when deploying the default helloworld
function.
The firebase-debug.log file mentions this:
Could not find image for function projects/picci-e030e/locations/us-central1/functions/helloWorld.
I have been trying to debug and so far have not been able to solve it...
firebase-debug.log
...ANSWER
Answered 2022-Feb-06 at 14:36Could not find image for function projects/picci-e030e/locations/us-central1/functions/helloWorld.
The Firebase Function deployment failed because it cannot find the image built based on your function app. There might be a problem building in your app, it could be your dependencies or files.
I replicated your issue, received the same error and solved it. There's a problem with the package.json
file and package-lock.json
. If you just add(without installing) your dependency in package.json
you should delete or remove your package-lock.json
that will be found in function directory before you deploy it again using the deployment command:
QUESTION
am trying to install firebase authentication and it's asking for an authorization code in the cli. no matter how I check I don't see any authorization code (I have web api keys etc provided in the firebaseConfig) am I missing something obvious? here is what my steps look like in the cli:
...ANSWER
Answered 2022-Feb-16 at 11:13I had the same problem. I solved it by following those steps :
1/ First, you have to connect your firebase account
> firebase login
2/ Next, check if the connection is alright (you need to create your project on firebase in a first place to see it in the result)
> firebase projects:list
3/ Then, you need to initialize firebase
> firebase init
4/ And now you can add the following command
> ng add @angular/fire
QUESTION
I'm trying to connect my app with a firebase db, but I receive 4 error messages on app.module.ts:
...ANSWER
Answered 2021-Sep-10 at 12:47You need to add "compat" like this
QUESTION
I have a simple function that I am testing locally on the emulator.
...ANSWER
Answered 2022-Feb-08 at 18:05You must terminate a HTTP function by sending back a response otherwise it'll run until it times out. Try refactoring your code like this:
QUESTION
I have a Firebase Function that deletes a user's collection in a Firestore database when their account is deleted.
...ANSWER
Answered 2022-Feb-01 at 09:12I've reproduced the error that you have encountered.
This error occurs on the latest "firebase-tools": "^10.1.3"
.
Based on the Delete data with a Callable Cloud Function, the documentation have sample code that still uses "firebase-tools": "9.18.0"
.
You could downgrade your firebase-tools
by modifying the package.json
. E.g. below:
QUESTION
I am using Ubuntu.
I have recently installed firebase-tools using npm with the command as officially stated:
ANSWER
Answered 2022-Jan-11 at 02:41A developer added a "new American flag module" to colors.js library yesterday in version v1.4.44-liberty-2 that he then pushed to GitHub and npm. The infinite loop introduced in the code will keep running indefinitely; printing the gibberish non-ASCII character sequence endlessly on the console for any applications that use the library.
It stems from the winston logging dep requiring logform that in turn requires colors https://github.com/winstonjs/logform/blob/7e18114c6426e4b69a76b1d8a023c87801421677/package.json#L31
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install firebase-tools
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page