Clojure CLI tools (with deps.edn) allow for a built in way to create projects.
Official CLI/deps guide: https://clojure.org/guides/deps_and_cli
- Pre-reqs: Clojure and dependencies installed.
-
Upgrade tools.tools to the latest
clojure -Ttools install-latest :lib io.github.clojure/tools.tools :as tools
-
Install a project creation Tool.
clojure -Ttools install-latest :lib io.github.seancorfield/deps-new :as new
More deps-new info: https://github.com/seancorfield/deps-new
-
Create a project directory structure
clj -Tnew app :name mygituser/myappname
-
Run tests or build.
clj -T:build test # Test only. clj -T:build ci # Test, write pom, build uberjar.
-
Run the app's '-main' function.
clj -M:run-m
Additional useful tools.
clojure -Ttools install-latest :lib com.github.liquidz/antq :as antqUsage
# Show outdated
clojure -Tantq outdated
# Upgrade outdated
clojure -Tantq outdated :upgrade trueclojure -Ttools install-latest :lib io.github.cljdoc/cljdoc-analyzer :as cljdocUsage
# Analyze local checked out deps based project
clojure -Tcljdoc analyze-local-
Optional project tool for common commands
brew install babashka/brew/neil
More neil info: https://github.com/babashka/neil
-
New project alternative
neil new app --name mygituser/myappname
-
More neil commands
neil help
Uh oh!
There was an error while loading. Please reload this page.