lein

clojure build tool

TLDR

Create new project
$ lein new [template] [project-name]
Run project
$ lein run
Start REPL
$ lein repl
Run tests
$ lein test
Build JAR
$ lein jar
Build uberjar
$ lein uberjar
Install dependencies
$ lein deps

SYNOPSIS

lein task [options]

DESCRIPTION

Leiningen is the Clojure build tool. It manages projects, dependencies, and builds.The tool provides templates for project creation. It integrates with Maven repositories.

PARAMETERS

new TEMPLATE NAME

Create project.
run
Run main function.
repl
Start REPL.
test
Run tests.
jar
Build JAR.
uberjar
Build standalone JAR.
deps
Download dependencies.
--help
Display help information.

INSTALL

sudo pacman -S leiningen
sudo apk add leiningen
sudo zypper install leiningen
brew install leiningen
nix profile install nixpkgs#leiningen

CAVEATS

Requires Java. project.clj configuration. Consider deps.edn for newer projects.

HISTORY

Leiningen was created by Phil Hagelberg as the standard build tool for Clojure projects.

SEE ALSO

clojure(1), java(1), boot(1)