Skip to content

Instantly share code, notes, and snippets.

Created March 1, 2018 10:01
What would you like to do?
How to start an nREPL using Clojure CLI tools using clj
$ clj -Sdeps '{:deps {org.clojure/tools.nrepl {:mvn/version "0.2.12"}}}'
Clojure 1.9.0
user=> (use '[ :only (start-server stop-server)])
user=> (defonce server (start-server :port 7888))
;; now connect to port 7888. there's probably a way to do this in one line.
Copy link

Note that tools.nrepl has moved to nrepl/repl

Copy link

Here's a one-liner:

clj -Sdeps '{:deps {nrepl {:mvn/version "0.6.0"}}}' -m nrepl.cmdline --interactive

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment