lein

Manage Clojure projects with declarative configuration. More information: <https://leiningen.org>.

Install

All systems
curl cmd.cat/lein.sh
Debian Debian
apt-get install leiningen
Ubuntu
apt-get install leiningen
image/svg+xml Kali Linux
apt-get install leiningen
Windows (WSL2)
sudo apt-get update sudo apt-get install leiningen
OS X
brew install leiningen
Raspbian
apt-get install leiningen

Manage Clojure projects with declarative configuration. More information: <https://leiningen.org>.

  • Generate scaffolding for a new project based on a template:
    lein new template_name project_name
  • Start a REPL session either with the project or standalone:
    lein repl
  • Run the project's `-main` function with optional args:
    lein run args
  • Run the project's tests:
    lein test
  • Package up the project files and all its dependencies into a jar file:
    lein uberjar

© tl;dr; authors and contributors