Install gcloud https://cloud.google.com/sdk/docs/install
Login and set project
gcloud init
# or just authorize
gcloud auth login
# then set project to the one that contains bucket
gcloud config set project [project-name]
Install script dependencies
npm i ts-node firebase firebase-admin typescript yargs @types/node
Run with ts-node and pass in bucket name and max file size (e.g. 10MB)
ts-node ./index.ts -b your-bucket.appspot.com -m 10
Logs values to console and also creates a large-files.log file with path, url and size.