Cli frameworks for Kotlin

This page summarizes the projects mentioned and recommended in the original post on /r/Kotlin

InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  • clikt

    Multiplatform command line interface parsing for Kotlin

  • I would recommend https://github.com/ajalt/clikt which is somewhat similar to click from Python world, and is written in Kotlin and for Kotlin, in contrast to Java's picocli

  • kotlinx-cli

    Pure Kotlin implementation of a generic CLI parser.

  • What about the official command line parser from jetbrains? https://github.com/Kotlin/kotlinx-cli

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • picocli

    Picocli is a modern framework for building powerful, user-friendly, GraalVM-enabled command line apps with ease. It supports colors, autocompletion, subcommands, and more. In 1 source file so apps can include as source & avoid adding a dependency. Written in Java, usable from Groovy, Kotlin, Scala, etc.

  • 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.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • New Project: CLI to transform Excel spreadsheets to JSON (in Kotlin)

    4 projects | /r/Kotlin | 7 Jun 2021
  • clap v1.1.0 released

    2 projects | /r/golang | 17 May 2023
  • Java 20 / JDK 20: General Availability

    3 projects | /r/java | 21 Mar 2023
  • Examples from Command-Line Rust Book in Clap 4 Derive API [Blog Post] [Beginners]

    2 projects | /r/rust | 8 Feb 2023
  • Building Command Line Interfaces with Kotlin using picoCLI

    4 projects | dev.to | 5 Sep 2021