Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Firebase commandline to list functions from GCP firebase

I have 100ds of functions deployed to firebase and I would like to know if I can list the remote functions on my machine using the firebase command line tools.

I want to see the list of functions deployed.

What I am trying to solve is:

  • Batch deploy functions to avoid deployment limit.
  • Deployment error when function deleted/renamed locally and then deploying whole functions.

Thanks!

like image 358
Jijo John Avatar asked Dec 10 '18 14:12

Jijo John


People also ask

How can I get source code from Firebase?

Hover over the function you want to view and click the three vertical dots. Select Detailed Usage Stats. This will bring you to the Google Cloud console. Select 'Source' to get the source code.

What is HttpsCallable?

An HttpsCallable is a reference to a "callable" http trigger in Google Cloud Functions.


2 Answers

I got the exact answer from Google support.

Currently, Firebase CLI doesn’t have any command to list deployed functions, whereas “gcloud functions list” CLI from Cloud SDK shows the list instead.

More details found here

like image 85
Jijo John Avatar answered Oct 20 '22 03:10

Jijo John


At the time of writing this answer, there is no CLI command that allows listing all the deployed functions for your project. The available commands can be found here: https://firebase.google.com/docs/cli/#commands

However, note that you can list the deployed functions in the Google Cloud console (not the Firebase one) by opening: https://console.cloud.google.com/functions/list?project=your_project_name

like image 39
Renaud Tarnec Avatar answered Oct 20 '22 02:10

Renaud Tarnec