Skip to content

Instantly share code, notes, and snippets.



Created Aug 14, 2017
What would you like to do?
A quick and dirty Firebase function for discovering what linux commands are available to functions.
var functions = require('firebase-functions');
var exec = require('child_process').exec;
exports.getInfo = functions.https.onRequest((req, res) => {
exec("/bin/bash -c 'compgen -c'", (...args) => {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment