Batteries Included CLI Framework
I've been looking for a "batteries included" CLI framework that besides the usual argument and flag parsing also provides telemetry, auth, release pipeline, testing utils, ... but couldn't find anything like that.
As CLIs are becoming more popular it seems that these problems will be more and more common. Is anyone aware of a service that provides those features out-of-the-box? I'm thinking about something like stainless.com but for CLIs instead of SDKs.
11 comments
[ 2.5 ms ] story [ 29.2 ms ] threadAlthough I think a type-safe language is a better fit for CLIs, to let coding agents iterate faster and have less runtime bugs (help messages not updated, unknown flags, etc.)
It has pretty much everything you're looking for. Feel free to ask me any question. I maintained the project for several years
For Node, Oclif for sure! Covers plugins, auto-update, and some telemetry hooks... I think the closest thing that you are looking for.
It's extensible by design, and you can test single commands atomically.
I think there's a good opportunity for it to become the Next.js/Vercel of CLIs.
Repo: https://github.com/ilbertt/parsh