explaingit

benfleis/cli

Analysis updated 2026-07-18 · repo last pushed 2023-03-18

Audience · developerComplexity · 2/5DormantSetup · easy

TLDR

babashka.cli turns any regular Clojure function into a command-line tool, auto-parsing flags, types, and subcommands for you.

Mindmap

mindmap
  root((babashka.cli))
    What it does
      Parses CLI args
      Coerces types
      Builds subcommands
    Tech stack
      Clojure
      Babashka
    Use cases
      Build CLI tools
      Skip argv parsing
      Add help text
    Audience
      Clojure developers
      Babashka users

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Turn an existing Clojure function into a command-line tool without writing argument-parsing code

USE CASE 2

Build a CLI with subcommands like 'copy file.txt --dry-run' or 'delete file.txt --recursive'

USE CASE 3

Auto-generate formatted help text for a CLI tool using the library's spec format

What is it built with?

ClojureBabashka

How does it compare?

benfleis/cli0verflowme/alarm-clock0verflowme/seclists
LanguageCSS
Last pushed2023-03-182022-10-032020-05-03
MaintenanceDormantDormantDormant
Setup difficultyeasyeasyeasy
Complexity2/52/51/5
Audiencedevelopervibe coderops devops

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · easy Time to first run · 30min

Copy-paste prompts

Prompt 1
Show me how to wrap this Clojure function so babashka.cli turns it into a CLI command
Prompt 2
Help me add subcommands like copy and delete to a CLI tool built with babashka.cli
Prompt 3
Explain how babashka.cli converts string arguments into numbers, keywords, and booleans
Prompt 4
Write a babashka.cli spec that generates help text for my command-line tool

Frequently asked questions

What is cli?

babashka.cli turns any regular Clojure function into a command-line tool, auto-parsing flags, types, and subcommands for you.

Is cli actively maintained?

Dormant — no commits in 2+ years (last push 2023-03-18).

How hard is cli to set up?

Setup difficulty is rated easy, with roughly 30min to a first successful run.

Who is cli for?

Mainly developer.

Open on GitHub → Explain another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.