Software Alternatives, Accelerators & Startups

picocli

Application and Data, Languages & Frameworks, and Shell Utilities.

picocli

picocli Reviews and Details

This page is designed to help you find out whether picocli is good and if it is the right choice for you.

Screenshots and images

  • picocli Landing page
    Landing page //
    2023-08-27

Features & Specs

  1. Ease of Use

    Picocli provides a simple API that makes it easy for developers to create command-line applications. You can annotate your command-line applications directly with annotations, which reduces boilerplate code and improves readability.

  2. Rich Features

    It supports a wide range of features such as nested subcommands, color output, internationalization, and type conversion for command-line arguments, offering developers a comprehensive tool for building complex CLIs.

  3. Strong Type Safety

    Picocli uses Java's strong type system, allowing developers to leverage compile-time type checks and ensuring that command-line arguments are type-safe.

  4. Built-in Help and Auto-Completion

    Picocli can automatically generate help messages and bash/zsh auto-completion scripts, enhancing user experience by making command-line tools more user-friendly.

  5. Active Community and Good Documentation

    Picocli has an active community and comprehensive documentation, which makes it easier for developers to find resources and get support when needed.

Badges

Promote picocli. You can add any of these badges on your website.

SaaSHub badge
Show embed code

Videos

We don't have any videos for picocli yet.

Social recommendations and mentions

We have tracked the following product recommendations or mentions on various public social media platforms and blogs. They can help you see what people think about picocli and what they use it for.
  • 🥳 We built the cli of our dreams to send sms ❣️
    Since a few years now, we started to design various cli for internal batch usage, on our Java Stack on top of picocli and quarkus, delivered as images, and run on podman. - Source: dev.to / 3 months ago
  • Making Contributions
    His project uses picocli for argument parsing. I briefly looked through the documentation and realized it was pretty similar to the clap crate I used for my project. So I mimicked his other code as well as my own understanding of clap. This part was easy. - Source: dev.to / 9 months ago
  • “Why I develop on Windows”
    "and there are simply no good command line input parsing libraries for Java." Looks like author missed the most obvious and popular OSS one: https://picocli.info/. - Source: Hacker News / about 2 years ago
  • Java 20 / JDK 20: General Availability
    The command line example gave me the "ick". It is usually preferrable to parse the command line arguments into one instance of a custom "command class", rather than into a list of things. Like jcommander, picocli or jbock do. Source: over 2 years ago
  • any opinion good or bed about a code that smells?
    Complex argument parsing needs to be auto-generated by libraries like picocli. Even if you need something custom, it'd be quicker to write an Annotation processor from scratch than editing that file. Source: over 2 years ago
  • Building a Java CLI. How can I make it more powershell-friendly
    Using picocli to handle your command line options gives you the best chance to automatically generate an ArgumentCompleter script in the future, but won't help you today (other than possibly making your command line handling more standardized & easier). Source: over 2 years ago
  • 🔍 Validate New-Caledonia Phone Numbers from cli ⌨️
    Then we released a JBang! And picocli based cli that would be, on any OS running a jvm runtime :. - Source: dev.to / almost 3 years ago
  • How to handle commands in Java?
    I generally tend to simplify this either through third-party libraries such as picoli or Spring Shell. Source: almost 3 years ago
  • Crest, a command-line API modeled after JAX-RS (Command REST)
    It looks to have even more features than Picocli. Source: over 3 years ago
  • Need Guidance: How to compile an application so it can run as application without Java IDE on another computer. (Example: ./runWatchFolders )
    I think you are looking for https://picocli.info/ - has info on how to build and distribute Java command-line apps, including using GraalVM to generate a single file native executable. Source: over 3 years ago
  • If you were to start your coding journey from zero, what would be your plan?
    For actual user interface, I would start with a terminal. I want to open a temrinal, write the name of my program, possibly with some arguments, the program starts and I see a prompt, and then I can write simple commands and the program does stuff. This way I can learn about parsing arguments (something like what picocli is doing in Java) but also about working with strings: parsing them, splitting, converting... Source: over 3 years ago
  • Finding it hard to continue
    Pico CLI is a great CLI library and will be one of the first to pop up when you google “java CLI libraries”. Source: over 3 years ago
  • Code Coverage, Java Debugger API and Full Integration in Building DDJT - Day 3
    I really like PicoCLI, I think that if you look at this source file, you can easily see why. It makes coding a command line app trivial. You get gorgeous CLI APIs with highlighting, completion, smart grouping and so much more. It even has a preprocessor, which makes it easy to compile it with GraalVM. - Source: dev.to / over 3 years ago
  • Scaffolding Spring Boot, Freemarker and JDI - Building DDTJ, Day 2
    For the CLI, I used PicoCLI. I meant to write about it ages ago and was bogged down with other things. I researched dozens of CLI tools for Java when we started Lightrun. They were all just awful. I like an opinionated approach as much as the next person, but they literally didn't let me define the syntax of the CLI code. - Source: dev.to / over 3 years ago
  • Building Command Line Interfaces with Kotlin using picoCLI
    As a developer, there is a large chance that you use Command Line Interfaces (CLIs) every day. From Git, to kubectl or Maven, they are everywhere. In this article, we'll look into use cases where CLIs are a great idea. We'll also dive into best practises, and discover one of the most used library for CLIs in the JVM world : picoCLI. - Source: dev.to / almost 4 years ago
  • PICOCLI
    To read more on picocli go to their website with documentation and other guides here. Source: almost 4 years ago
  • New Project: CLI to transform Excel spreadsheets to JSON (in Kotlin)
    Thank you for the suggestions. I actually started with Clikt, but found the documentation regarding testing insufficient. Especially, comparing stdout from an executed test was not obvious… for picocli this is documented directly https://picocli.info/#_execution_configuration. Source: about 4 years ago
  • Any good guides to help understand Spring Boot?
    Sometimes I like to throw in CLI applications into the mix, even though it seems ridiculous for Spring, it can be kinda nice to get used to it. The picocli framework has a nice integration with Spring Boot, which is just another way to play with using Spring components. Source: about 4 years ago
  • How to specify a class as entry point from command line?
    A main class entry is used to create the appropriate entry in MANIFEST.MF file which makes the jar file executable directly on command line like java -jar file <.option> but of course you can use java -cp jarfile [args...]... But having multiple mainclasses does not make sense nor could it be configured via pom file... It could be an option to create a cli application which handles the different "main classes"... Source: about 4 years ago
  • Cli frameworks for Kotlin
    Clikt is pretty standard for anything Kotlin but I personally much prefer picoCLI. It is Java and slightly more clunky but the documentation is insanely extensive, the developer ready to help you at any moment and there are lots of big projects using it (junit, spring, even including some Kotlin projects like Ktlint) so you're sure it's future proof. Source: about 4 years ago
  • Absolute beginner - readLine() convert input to Int
    I think, you can use libs for that. ex: Clikt, kotlinx.cli, picocli. Source: about 4 years ago

Do you know an article comparing picocli to other products?
Suggest a link to a post with product alternatives.

Suggest an article

picocli discussion

Log in or Post with

Is picocli good? This is an informative page that will help you find out. Moreover, you can review and discuss picocli here. The primary details have not been verified within the last quarter, and they might be outdated. If you think we are missing something, please use the means on this page to comment or suggest changes. All reviews and comments are highly encouranged and appreciated as they help everyone in the community to make an informed choice. Please always be kind and objective when evaluating a product and sharing your opinion.