Using Clojure tools
clojure command provided by Clojure CLI tools can be used to evaluate code, run Clojure applications and start a command line REPL UI.
Clojure CLI tools are extended by adding aliases for community tools, eg. as found in practicalli/clojure-deps-edn
Common tasks for Clojure development
Clojure CLI main flag options
Which flag to use?
-X flag should be used for the new built-in aliases and for any tools supporting Clojure exec approach, with arguments passed as key/value pairs.
More tools should start adopting the
-X flag and supporting key/value arguments in future.
What version of Clojure CLI tools are installed?
deps.edn file allows you to specify a particular version of the Clojure language the REPL and project use. You can also evaluate
*clojure-version* in a REPL to see which version of the Clojure language is being used.