How to build useful, empathic and robust CLI tools
- Published at
- Updated at
- Reading time
I love well-crafted CLI tooling. Multiple colors, space formatting, creative spinners, some emojis... I'm all in for these things. And while I enjoy these tiny details, there is so much more to consider when building a CLI interface.
- When should you use
- Which standard CLI parameters should you use?
- How do you write an excellent help dialog?
The Command Line Interface Guidelines answer the above and many other questions. They are a beautiful guide on commonly used CLI best practices that's worth bookmarking.
So, if you're building a CLI tool, check the included recommendations! I promise they will make your tool more useable and more delightful to use!
- How to list all open GitHub pull requests and select one on the command line
- A terminal script to get notified when macOS changes its appearance (dark/light mode)
- A git alias to show a detailed git branch overview
- A trick to run shell examples with a leading $
- How to force yourself to leave the computer using the leave command