Install on Linux
To install the
poly
command on Linux:- e.g.
poly-0.2.17-alpha.jar
. - Create a directory, e.g.
/usr/local/polylith
and copy the jar file to that directory. - Create a file with the name
poly
and put it in e.g./usr/local/bin
with this content:#!/bin/shARGS=""while [ "$1" != "" ] ; doARGS="$ARGS $1"shiftdoneexec "/usr/bin/java" $JVM_OPTS "-jar" "/usr/local/polylith/poly-0.2.17-alpha.jar" $ARGS - Make sure that:
- you point to the correct jar file.
- the path to
java
is correct (can be verified withwhich java
).
- If you choose
/usr/local/bin
, it was probably already on your path, otherwise you have to add it. - Make it executable by executing
chmod +x poly
.
Verify the installation by executing
poly help
.Last modified 9mo ago