CLOJURE(1)
β¨ CLOJURE(1) β¨
okay bestie, this is the manual page for clojure from the General Commands Manual, section 1. it's giving "your gateway to the JVM" energy and i'm obsessed π
πΈ NAME πΈ
clojure β a JVM-based dynamic programming language π
π¦ SYNOPSIS π¦
clojure [-cp/-classpath classpath] [-i/--init path] [-e/--eval expr] {-h
| -r | path | -} [args ...]
like. look at her. the options. the braces. the way she says "pick one of -h, -r, a path, or -". iconic. no notes. β¨
π DESCRIPTION π
so this manual page documents the clojure command, briefly. quick lil vibe check, nothing too deep π«Ά
clojure is the main entry point for Clojure, which is a dynamic programming language that targets the Java Virtual Machine. literally the front door. the main character. π
and here's the cute part: with no options and no arguments, she just runs an interactive Read-Eval-Print loop β a REPL β and you get to sit there and vibe with your own code in real time. it's giving instant gratification fr fr π
β¨ OPTIONS β¨
a summary of options is included below. bestie, we're going through ALL of them, no skipping, i don't play like that π
-cp,-classpathclasspath β specifies additional classpath elements. overrides the$CLASSPATHenvironment variable. and β οΈ it must appear first if given β like, before anything else, she needs to be the first one through the door.-i,--initpath β load a file or resource at initialisation time. you can say this multiple times if you want, she doesn't mind π-e,--evalstring β evaluate expressions in string; print non-nil values. also may be specified multiple times. stack 'em up π-m,--mainns-name β call the-mainfunction from a namespace, with args. your classic "just run the thing" move β¨-r,--replβ run a repl πpathβ run a script from a file or resource π-β run a script from standard input. yes, a single lonely dash. she contains multitudes π-h,-?,--helpβ print a help message and exit. our queen of "idk what's happening" π«Ά
π PATH ARGUMENTS π
so a Clojure file can just be handed over as a path argument. easy.
but β plot twist β files to be loaded from the classpath must be prefixed with a @ character, and they must be an absolute path to the classpath resource. not vibes-based. absolute. periodt.
β οΈ also note: the path will be treated as absolute within the classpath, whether it is prefixed with a slash or not. so like, don't come for me about the slash, she's already decided. π
and here's the part that makes scripts actually work: clojure binds *command-line-args* to a seq containing the (optional) arguments provided after the path argument. that's the whole trick β it's how you hand command-line arguments to your own scripts. iykyk π
π§ ENVIRONMENT π§
a listing of recognised environment variables is included below. there's literally one. she's lowkey mysterious. β¨
CLASSPATHβ specifies additional classpath elements. (yes, this is the one-cp/-classpathoverrides. the drama. the tension. πΏ)
π SEE ALSO π
clojurec(1).
go read that one too, bestie, we support the whole family π«Ά
π AUTHOR π
clojure is a wrapper script around a Java implementation by Rich Hickey <richhickey@gmail.com>. π
the wrapper script was written by Peter Collingbourne <peter@pcc.me.uk>. π
this manual page was written by Peter Collingbourne <peter@pcc.me.uk>, for the Debian project (but may be used by others). so generous. so giving. we love that for them π
and that's the whole page, bestie!! π this was CLOJURE(1) from the General Commands Manual β you found her, you read her, you slayed. now go run a REPL and have the time of your life. byeee πβ¨π¦πΈ
π¦ where this page comes from
- debian trixie: clojure 1.12.0-1 Β· EPL-1
- ubuntu questing: clojure 1.12.0-1
- ubuntu resolute: clojure 1.12.0-1build2 Β· EPL-1
- ubuntu stonking: clojure 1.12.5-1 Β· EPL-1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms