HACKER Q&A
📣 digitalsanctum

What do you use to wrap a CLI and make it an HTTP API?


As a hobby I've been participating in some bug bounty programs. A lot of the tools used are CLIs. For some of them I'd like to wrap the CLI and deploy it as an HTTP endpoint. Optionally, I'd like to extend the CLI (perhaps by combining with other tools). What's your favorite framework/pattern for doing this kind of thing?


  👤 fasturdotcom Accepted Answer ✓
Set up node and when you make a request spawn a child process that executes your bash command/file