MHN

Batteries Included CLI Framework

28 points by maxalbarello·219 days ago·Show in HN

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.

Add a comment on Hacker News →
1 of 10 comments
  1. I've noticed that the TypeScript ecosystem around CLIs is fragmented, and for that reason (and because I love type-safe code), I've built parsh.

    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