Is it possible to call the following command programatically from a repl:
clj -X:deps list
Yes tools.deps.cli is. https://github.com/clojure/tools.deps.cli/blob/main/src/main/clojure/clojure/tools/deps/cli/api.clj