clojure.tools.tools.api

This api provides functions that can be executed from the Clojure tools using -Ttools.

install

(install {:keys [as], :as args})
Install a tool under a local tool name for later use. On install, the tool is procured, and
persisted with the tool name for later use.

Options:
  lib-name (required) - value is coord map (git coords may omit sha)
  :as (required) - tool name

Example:
  clj -Ttools install io.github.clojure/tools.deps.graph '{:git/tag "v1.0.63"}' :as deps-graph

Also see:
  clj -X:deps find-versions :lib <lib>

list

(list _)
List available tools.

Options:
  none

Example:
  clj -Ttools list

remove

(remove {:keys [tool], :as args})
Remove :tool, if it exists.

Options:
  :tool (required) - tool name to remove

show

(show {:keys [tool], :as args})
Print info and usage for this :tool.

Options:
  :tool (required) - tool name to show

Example:
  clj -Ttools show deps-graph