Automatically download your Firebase/Google Cloud Functions.
1- Make sure to have the gCloud CLI installed
2- Provide credentials as described here
- Don't forget to star this repo 😉
npx firebase-functions-downloader --project dev --region us-central
1- Install the library
- npm
npm install -g firebase-functions-downloader
or
- yarn
yarn global add firebase-functions-downloader
2- Execute command
firebase-fd --project dev --region us-central
-
project
: string - Project to download from- alias:
p
- required
- alias:
-
region
: string - Region where functions are deployed in- alias:
r
- required
- alias:
-
output
: string - Output path where functions will be downloaded to- alias:
o
- optional
- alias: