LEININGEN(1)
π LEININGEN π
okay bestie, welcome to the LEININGEN(1) manual page, aka the group chat lore drop for lein β the Clojure automation bestie you've been looking for π
β¨ NAME β¨
lein β Automate Clojure projects π¦
π SYNOPSIS π
lein [-o] [-U] [TASK [ARGS]]
lein [-h|--help]
lein [-v|--version]
πΈ DESCRIPTION πΈ
Leiningen is for automating Clojure projects without setting your hair on fire π₯π β like, that's the whole brand, no cap.
Working on Clojure projects with tools designed for Java can be an exercise in frustration. With Leiningen, you just write Clojure. that's it. that's the vibe. periodt β¨
π TASKS π
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 testslein replβ launch an interactive REPL session in a networked REPL server π¬lein uberjarβ package up the project and its dependencies as a standalone.jarfile π¦lein installβ install a project into your local repositorylein deploy [REPOSITORY]β deploy a library to a remote repository π
Other tasks available include:
lein changeβ Rewriteproject.cljby 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'starget-path.lein compileβ Compile Clojure source into.classfiles.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 apom.xmlfile to disk for Maven interoperability.lein releaseβ Perform:release-tasks.lein retestβ Run only the test namespaces which failed last time around. (the redemption arc π€)lein runβ Run a-mainfunction 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.
π OPTIONS π
-oβ Run a task offline. airplane mode but make it build tool βοΈ-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.
π§ CONFIGURATION π§
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. π«Ά
π BUGS π
Check https://codeberg.org/leiningen/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.
ngl, bug reports without lein version output are giving "help me help you (derogatory)" π drop the details and the maintainers will love you forever, fr fr π
π COPYING π
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.
β AUTHOR β
This manpage is written by Phil Hagelberg <technomancy@gmail.com> β absolute icon, we stan π
and that's the whole page bestie!! this was the LEININGEN(1) manual, 2017 August 10 edition β go forth and automate ur Clojure projects without any hair fires πβ¨π
π¦ where this page comes from
- alpine 3.24: leiningen-doc 2.12.0-r0 Β· EPL-1.0
- arch rolling: leiningen 2.13.0-1 Β· EPL-2.0
- debian bookworm: leiningen 2.10.0-2 Β· EPL-1.0
- debian trixie: leiningen 2.10.0-5 Β· EPL-1.0
- opensuse-leap 16.0: leiningen 2.11.2-bp160.1.6 Β· EPL-1.0
- ubuntu noble: leiningen 2.10.0-2 Β· EPL-1.0
- ubuntu questing: leiningen 2.10.0-5
- ubuntu resolute: leiningen 2.11.2-1build1 Β· EPL-1.0
- ubuntu stonking: leiningen 2.11.2-2 Β· EPL-1.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms