CLOJURE(1)
π NAME π
okay so bestie, welcome to the CLOJURE(1) manual page β iconic, no notes, and literally the page for the runner vibes. The commands are clj and clojure, and theyβre runners to launch Clojure programs. π
π¦ SYNOPSIS π¦
clj [clj-opts] [-Aaliases]
clojure [clj-opts] -X[aliases] my/fn? [kpath v ...] kv-map?
clojure [clj-opts] -T[name|aliases] my/fn [kpath v ...] kv-map?
clojure [clj-opts] -M[aliases] [init-opts] [main-opts] [args]
πΈ DESCRIPTION πΈ
The clojure tool is a runner for Clojure programs. clj is a wrapper for clojure that uses rlwrap to provide a better interactive experience. Users will typically run clj. β¨
β¨ EXAMPLES β¨
You can launch a Clojure REPL by running clj. π
See the Deps and CLI Guide below for more complex usage. π¦
π OPTIONS π
The clj and clojure scripts can take three types of options, as shown in the synopsis. clj-opts are used to build the java-opts and classpath. init-opts refer to Clojure code to execute. main-opts are options to clojure.main. π«Ά
π clj-opts π
-Joptβ Passoptthrough injava_opts, ex:-J-Xmx512m-Aaliasesβ Concatenated aliases for REPL execution, ex:-A:dev:mem-Xaliases fn KPATH Vβ Exec alias to invoke one or more functions that take a map, with keypath/value overrides. Function must either be supplied or be in:exec-fnargmap for alias-Maliasesβ Execclojure.main, either from opts in alias or command line-Pβ Prepare - download libs, cache classpath without executing-Sdeps EDNβ Deps data or file to use as the last deps file to be merged-Spathβ Compute classpath and echo to stdout only-Streeβ Print dependency tree-Scp CPβ Do NOT compute or cache classpath, use this one instead-Sreproβ Ignore the~/.clojure/deps.ednconfig file-Sforceβ Force recomputation of the classpath (don't use the cache)-Sverboseβ Print important path info to console-Sthreads Nβ Set specific number of download threads-Straceβ Write atrace.ednfile that traces deps expansion--β Stop parsing dep options and pass remaining arguments toclojure.main--versionβ Write version to stdout and exit-versionβ Write version to stderr and exit
π init-opts π
-i,--init pathβ Load a file or resource located atpath-e,--eval stringβ Eval exprs instring; print non-nil values--report targetβ Report uncaught exception totarget:"file"(default),"stderr", or"none", overrides System propertyclojure.main.report
π main-opts π
-m,--main ns-nameβ Call the-mainfunction from namespace w/args-r,--replβ Run a replpathβ Run a script from a file or resource located atpath-β Run a script from standard input-h,-?,--helpβ Print this help message and exit
π§ CONFIGURATION π§
This script reads configuration from deps.edn files. It will check against deps.edn files in the system root location, the user configuration directory (usually ~/.clojure), and the local directory. Files in each of these locations, if they exist, are merged to form one combined configuration file. The last specified configuration file's options overwrites any earlier files (e.g. local configs take priority). π
π SEE ALSO π
https://clojure.org/guides/deps_and_cliβ Deps and CLI Guidehttps://clojure.org/reference/deps_ednβ deps.edn Referencehttps://clojure.org/reference/clojure_cliβ Clojure CLI Referencehttps://clojure.org/reference/repl_and_mainβ REPL and Main Entrypointshttps://clojure.org/releases/toolsβ Release history and changelog
π BUGS π
File issues at https://ask.clojure.org under category Libs / tools.deps. π«‘
π¦ AUTHORS π¦
clojure and clj are maintained by Alex Miller <alex.miller@cognitect.com>. This man page was written by Elana Hashman <ehashman@debian.org>. π
π COPYRIGHT π
Copyright Β© Rich Hickey, Alex Miller and contributors.
Distributed under the Eclipse Public License 1.0, the same as Clojure.
final footer tea, bestie: source/version CLOJURE(1) and date 2019 June 6 β mwah, bye, slay responsibly ππ
π¦ where this page comes from
- alpine 3.24: clojure-doc 1.12.5-r0 Β· EPL-1.0
- arch rolling: clojure 1.12.5.1664-1 Β· EPL-1.0
- nixos 26.05: clojure 1.12.5.1645
- nixpkgs unstable: clojure 1.12.6.1673
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms