Show HN: Zli – A Batteries-Included CLI Framework for Zig
18 caeser 2 5/25/2025, 4:52:14 PM github.com ↗
I built zli, a batteries-included CLI framework for Zig with a focus on DX and composability.
Key features:
- Typed flags with default values and help output - Rich formatting, and layout support - Command trees with isolated execution logic - It’s designed to feel good to use, not just to work. - Built for real-world CLI apps, not toy examples.
Would love feedback, feature ideas, or thoughts from other Zig devs.
repo here: https://github.com/xcaeser/zli
How do you like Zig compared to TypeScript? What would you like to see improved?
It's also important not to emit escape codes at all when TERM=dumb. (You'll get this behavior automatically if you implement color support by asking terminfo to the escape codes.)