for those wishing to execute clojure programs via lein without creating a project. You can use lein-exec. A plugin to execute Clojure scripts. Simple add {:user {:plugins [[lein-exec "0.3.5"]]}}
to ~/.lein/profiles.clj
is using lein 2.x. For those using lein 1.x you can install as a plugin using: lein plugin install lein-exec "0.1"
For more instructions check out: https://github.com/kumarshantanu/lein-exec