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

Autocomplete

Fig spec, with what the manifest adds · 24 options
Published once and never changed; check the digest before caching
sha256
66456120236b353a4432d6700f6fd499cd77ce1a1386f745b0b030cfd279dcba
Size
5272 bytes
OptionsOn clojure itself
-A
Use concatenated aliases to modify classpath
-X
<a/fn> <kvs> <kv-map>
-T
Invoke tool by name or via aliases ala -X <a/fn> <kvs> <kv-map>
-M
Use concatenated aliases to modify classpath or supply main opts <args>
-P
Prepare deps - download libs, cache classpath, but don't exec
-J
Pass opt through in java_opts
-Sdeps
Pass the deps data on the command line <edn>
-Spath
Compute classpath and echo to stdout only
-Scp
Use specified classpath instead of cached or computed one <cp>
-Sdescribe
Print environment and command parsing information as data
-Sforce
Ignore classpath cache and force recomputation
-Spom
Generate (or update) pom.xml with deps and paths
-Srepro
Ignore the ~/.clojure/deps.edn config file
-Sthreads
Set the number of threads to use when downloading dependencies
-Strace
Write a trace.edn file that traces deps expansion
-Stree
Print dependency tree
-Sverbose
Print all path locations
-version--version
Print the Clojure CLI version
-i--init
Load a file or resource <path>
-e--eval
Evaluate expressions in string; print non-nil values <string>
--report
Report uncaught exceptions <target>
-m--main
Call the -main function from a namespace with args <ns-name> <args>
-r--repl
Run a REPL
-h-?--help
Show help for clojure