How to use a dependency from clojure repl without starting a lein project?

Another option to consider is Boot, which lets you start a REPL anywhere with any dependencies specified via the command-line:

boot -d org.clojure/math.combinatorics:0.1.4 repl

If you just want the latest version, whatever that is, you can omit the version spec:

boot -d org.clojure/math.combinatorics repl
1 Like