clj Command Examples

Clojure tool to start a REPL or invoke a function with data. All options can be defined in a deps.edn file. More information: https://clojure.org/guides/deps_and_cli.

clj

clj -X {{namespace/function_name}}

clj -M -m {{namespace}} {{args}}

clj -P

clj -Sdeps '{:deps {nrepl {:mvn/version "0.7.0"} cider/cider-nrepl {:mvn/version "0.25.2"}}}' -m nrepl.cmdline --middleware '["cider.nrepl/cider-middleware"]' --interactive

clj -Sdeps '{:deps {org.clojure/clojurescript {:mvn/version "1.10.758"}}}' --main cljs.main --repl