poly
Search
⌃K

Install

There are several ways to install the poly tool, which determines how thepolytool will be executed:
  1. 1.
    As a stand-alone command line tool, executed as a Java program, e.g. poly info:
    • The polytool can be executed from any directory.
    • A script named poly is installed on your local disk and added to the system path, with a content like this: java -jar poly.jar
  2. 2.
    By the Clojure CLI, e.g. clojure -M:poly info:
    • The polytool can only be executed from inside a Polylith workspace directory (it uses the :poly alias in deps.edn).
    • Which version of the poly tool to use can easily be selected by changing the SHA in deps.edn.
  3. 3.
    As a Clojure CLI tool, e.g. clojure -Tpoly info :
    • The polytool can be executed from any directory.
    • Different versions of the poly tool can easily be installed and switched to.
    • It doesn't follow the poly way of passing in arguments, which is described here.
With this said, it's useful to install the tool both as a stand-alone command line tool, and any or both of the other two variants, but it's mainly up to your preferences how you prefer to use the tool.
Now it's time to install the poly tool, so please follow the installation instructions for your operating system of choice.