Skip to content

Instantly share code, notes, and snippets.

View gaberilde's full-sized avatar
💭
Doing a bit of stuff when i have time i might work on GabrieloRomTools&more Soon

Gabrielo gaberilde

💭
Doing a bit of stuff when i have time i might work on GabrieloRomTools&more Soon
View GitHub Profile
@gaberilde
gaberilde / README.md
Last active January 23, 2024 15:51 — forked from mbleigh/README.md
Firebase Hosting Fetch All Files Url fix

Fetch All Files from Firebase Hosting

This script fetches all of the files from the currently deployed version of a Firebase Hosting site. You must be signed in via the Firebase CLI and have "Site Viewer" permission on the site in question to be able to properly run the script.

Running via NPX

npx https://gist.github.com/gaberilde/4c2d55d8c6de0772ca49c8b473dff442 <site_name>
@gaberilde
gaberilde / fetchFilesfixed.js
Last active March 10, 2023 22:36
hope this works
#!/usr/bin/env node
const requireAuth = require('firebase-tools/lib/requireAuth');
const api = require('firebase-tools/lib/api');
const fs = require('fs-extra');
const request = require('request');
if (!process.argv[2]) {
console.error(`
ERROR: Must supply a site name. Usage: