picocli logo


Easily build command line apps with ANSI colors and autocomplete
+ 1

What is picocli?

Library and framework for easily building professional command line applications on the JVM (Java, Groovy, Kotlin, Scala, etc). Usage help with ANSI colors. Autocomplete. Nested subcommands. Annotations and programmatic API. Easy to include as source to avoid adding dependencies. More than just a command line parser.
picocli is a tool in the Shell Utilities category of a tech stack.
picocli is an open source tool with 4.7K GitHub stars and 409 GitHub forks. Here’s a link to picocli's open source repository on GitHub

Who uses picocli?


10 developers on StackShare have stated that they use picocli.

picocli Integrations

Pros of picocli
Best Java framework for Java CLI that I know
Easy to Use
Actively maintained
Well documented
ANSI colors in usage help
Command line auto-completion
GraalVM native image integration

picocli's Features

  • Java 5-13ea
  • annotation API
  • programmatic API
  • GraalVM integration - for extremely fast startup
  • nested subcommands to any depth
  • strongly typed option parameters
  • strongly typed positional parameters
  • many, many built-in types
  • easily add custom type converters
  • interactive password options
  • supports Maps for options and positional parameters (like -Dkey=value Java system properties)
  • no boilerplate code, just implement Runnable or Callable
  • supports both mixins and subclassing for reuse
  • built-in support for standard --help and --version options (zero code)
  • built-in help subcommand
  • uses STDERR for error messages, STDOUT for requested help by default
  • allows any option prefix
  • POSIX-style clustered short options
  • highly configurable parser
  • parser tracing to facilitate troubleshooting
  • quality documentation
  • built-in Groovy script support
  • easily integrates with Dependency Injection containers
  • easily integrates with JLine 2 and JLine 3 to create interactive shell applications

picocli Alternatives & Comparisons

What are some alternatives to picocli?
JavaScript is most known as the scripting language for Web pages, but used in many non-browser environments as well such as node.js or Apache CouchDB. It is a prototype-based, multi-paradigm scripting language that is dynamic,and supports object-oriented, imperative, and functional programming styles.
Git is a free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency.
GitHub is the best place to share code with friends, co-workers, classmates, and complete strangers. Over three million people use GitHub to build amazing things together.
Python is a general purpose programming language created by Guido Van Rossum. Python is most praised for its elegant syntax and readable code, if you are just beginning your programming career python suits you best.
jQuery is a cross-platform JavaScript library designed to simplify the client-side scripting of HTML.
See all alternatives

picocli's Followers
12 developers follow picocli to keep up with related blogs and decisions.