2025-03-14 21:59:59 -06:00
|
|
|
# lein
|
|
|
|
|
|
|
|
|
|
> Manage Clojure projects with declarative configuration.
|
2025-12-16 10:20:31 -07:00
|
|
|
> More information: <https://manned.org/lein>.
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- 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`
|