GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
LEININGEN(1) FreeBSD General Commands Manual LEININGEN(1)

lein - Automate Clojure projects

lein [-o] [-U] [TASK [ARGS]]
lein [-h|--help]
lein [-v|--version]

Leiningen is for automating Clojure projects without setting your hair on fire.

Working on Clojure projects with tools designed for Java can be an exercise in frustration. With Leiningen, you just write Clojure.

lein help will show the complete list of tasks, while lein help TASK shows usage for a specific one.

lein help tutorial has a detailed walk-through of the various tasks, but the most commonly-used are:

lein new NAME
generate a new project skeleton
lein test [TESTS]
run the tests in the TESTS namespaces, or all tests
lein repl
launch an interactive REPL session in a networked REPL server
lein uberjar
package up the project and its dependencies as a standalone .jar file
lein install
install a project into your local repository
lein deploy [REPOSITORY]
deploy a library to a remote repository

Other tasks available include:

lein change
Rewrite project.clj by applying a function.

lein check
Check syntax and warn on reflection.

lein classpath
Print the classpath of the current project.

lein clean
Remove all files from project's target-path.

lein compile
Compile Clojure source into .class files.

lein deps
Download all dependencies.

lein do [TASK], ...
Higher-order task to perform other tasks in succession.

lein jar
Package up all the project's files into a jar file.

lein javac
Compile Java source files.

lein pom
Write a pom.xml file to disk for Maven interoperability.

lein release
Perform :release-tasks.

lein retest
Run only the test namespaces which failed last time around.

lein run
Run a -main function with optional command-line arguments.

lein search
Search remote maven repositories for matching jars.

lein show-profiles
List all available profiles or display one if given an argument.

lein trampoline [TASK]
Run a task without nesting the project's JVM inside Leiningen's.

lein update-in
Perform arbitrary transformations on your project map.

lein vcs
Interact with the version control system.

lein version
Print version for Leiningen and the current JVM.

lein with-profile [PROFILE] [TASK]
Apply the given task with the profile(s) specified.

-o
Run a task offline.

-U
Run a task after forcing update of snapshots.

-h, --help
Print this help or help for a specific task.

-v, --version
Print Leiningen's version.

Leiningen reads its configuration from the project.clj file in your project root. Either use lein new to create a fresh project from which to work, or see the exhaustive list of configuration options with lein help sample.

You can customize your project map further with profiles; see lein help profiles.

Check https://github.com/technomancy/leiningen/issues to see if your problem is a known issue. If not, please open a new issue on that site. Please include the output of lein version as well as your project.clj file and as much of the relevant code from your project as possible.

Copyright (C) 2009-2017 Phil Hagelberg and contributors.

Distributed under the Eclipse Public License, the same as Clojure uses. See the file /usr/share/doc/leiningen/copyright.

This manpage is written by Phil Hagelberg <technomancy@gmail.com>
2017 August 10

Search for    or go to Top of page |  Section 1 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.