An introduction to creating CLI applications using picoCLI
summary
picoCLI demonstrates a minimal JVM library that builds a Star Wars HTTP-query CLI with annotated options, positional parameters and subcommands, plus a programmatic API to generate commands dynamically. It claims wide adoption (over 2 million monthly downloads; used by JUnit, AWS, Microsoft) and features completion, color/style support and doc generation. Native-image builds via GraalVM shrink startup from ~1.6–2s (JVM warm) to much lower at the cost of larger binaries (~16MB vs 2.3MB jar).
AI-written summary · about
chapters (10)
- 0:00Introduction to picocli
- 1:26Why use CLI applications
- 2:30Demo overview and setup
- 3:52Basic CLI usage example
- 5:00Implementing options and parameters
- 7:26Subcommands for better UX
- 9:10Programmatic API demo
- 11:37Native compilation benefits
- 12:40Summary and use cases
- 14:06Conclusion and resources
related talks
30mPicocli: Put Some Java in Your Terminal!
46mPicocli: put Java in your terminal!
25m☕️ Picocli: Put Java in Your Terminal! 🖥️
41mEfficient DevOp Tooling with Java and GraalVM
47mFrom CLIs to LLMs: 5 Cool Applications to Build with GraalVM
48mFrom CLIs to LLMs: 5 cool applications to build with GraalVM
14mShare Your Java CLI Apps with Ease
51mTake a Walk on the Client Side
