Linux command
lein 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
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
说明
Leiningen is the Clojure build tool. It manages projects, dependencies, and builds. The tool provides templates for project creation. It integrates with Maven repositories.
参数
- 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.
FAQ
What is the lein command used for?
Leiningen is the Clojure build tool. It manages projects, dependencies, and builds. The tool provides templates for project creation. It integrates with Maven repositories.
How do I run a basic lein example?
Run `lein new [template] [project-name]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does new _TEMPLATE_ _NAME_ do in lein?
Create project.