LinuxCommandLibrary

lein

clojure build tool

TLDR

Create new project

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

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.

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)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community