All apps/Clojure CLI

Clojure CLI

clojure

Command line tools to run a Clojure REPL or program and manage dependencies declared in deps.edn.

Runs as clojure|macOS, Linux, Windows|clojure.org

Command form

ai-draft · 3 tasks · 8 fields

Evaluate an expression, run a namespace's -main, or start a REPL with the Clojure CLI. Aliases, -X/-T function invocation and -S dependency flags are left out.

Opens the form; the finished command lands at your prompt, unrun
otty gui clojure
Run ClojureExample values, fixed in this page — nothing here reaches a terminal
Basic
Init file
file
Run a REPL
--repl
TasksEach one presets the form for one job
Start a REPL
replinit
Evaluate an expression
evalinit
Run a namespace
main
ParametersOnly these flags are editable in the form
Expression
Evaluate expressions in this string and print non-nil values.
string
--eval-e
Main namespace
Call the -main function of this namespace.
string
--main-m
Init file
Load a file or resource before running.
path
--init-i
Run a REPL
boolean
--repl-r
Prepare deps only
Download libs and cache the classpath without executing.
boolean
-P
Print classpath
boolean
-Spath
Print dependency tree
boolean
-Stree
Force classpath recomputation
boolean
-Sforce
SourcesEvery flag above is checked against these
fig
completion

github.com

Before it fills your prompt, Otty checks the installed clojure against its version. A form that does not match your version is not offered.