Live data from Hacker News

Batteries Included CLI Framework

news.ycombinator.com

11–14 of 14 posts

Re: Batteries Included CLI Framework

#12

There are some options but it depends on your language/stack. If your stack is Go, you can try cobra-cli, but I think you will need to wire auth yourself. For Node, Oclif for sure! Covers plugins, auto-update, and some telemetry hooks... I think the closest thing that you are looking for.

the telemetry hooks and the rest is great but i'm wondering why there isn't a service that takes care of all of this. seems to be a problem that everyone building CLI has

Re: Batteries Included CLI Framework

#13
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

Re: Batteries Included CLI Framework

#14
post #6

Typer.

That's a good framework and I like that the creator took the same design choices as the FastAPI framework.

Although 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.)

Post reply on HN