For a *NIX-like setup (e.g. Linux, macos, etc.) it is possible to set an environment variable named clojure.server.repl
for the purpose of launching a socket repl like this:
$ env clojure.server.repl="{:port,7650,:accept,clojure.core.server/repl}" bash
That starts a new bash
that has an appropriate environment variable. Note that a straight-forward use of export
to do this may not work.
Subsequent to the new bash
starting, you can:
$ Clojure.Main
and there should be a socket repl running on the specified port (in this example, that's 7650)