Skip to content

Installation

All Poly applications are created and managed through the poly CLI.

Pre-requisites

  • Xcodegen for generating xcode projects on macOS

Download

Pre-built binaries of the CLI are published as GitHub releases. Put the binary in a directory that is in PATH, or add the directory it is in to PATH, then it is ready to go.

Building the CLI

The CLI can also be built from the source code, which requires:

First, clone this repo:

git clone https://github.com/poly-gui/cli.git

This clones the repo into a directory called “cli”. If the name is too generic, feel free to clone the repo into a directory with a different name.

Change into the repo, and install the required dependencies:

go mod download

Finally, build and install the binary:

go install poly-cli/cmd/poly

The poly command should now be installed and ready to use. Make sure GOBIN is in PATH, which defaults to $(go env GOPATH)/bin. If not, add:

export PATH="$PATH:$(go env GOPATH)/bin"

or if GOBIN is set:

export PATH="$PATH:$(go env GOBIN)/bin"

to your path.