Skip to content

Install the CLI

The CLI ships as a single self-contained executable. It bundles its own runtime, so there is nothing to install alongside it — no Deno, no Node, no package manager.

Terminal window
curl -fsSL https://docs.polymesa.com/install.sh | sh

The script detects your OS and architecture, downloads the matching binary, verifies its SHA-256 checksum, and installs to /usr/local/bin/polymesa.

To install somewhere else — useful when you do not want to use sudo:

Terminal window
curl -fsSL https://docs.polymesa.com/install.sh | POLYMESA_INSTALL_DIR="$HOME/.local/bin" sh

Grab a binary yourself if you prefer, or if you are pinning a version in CI.

Every release also publishes checksums.txt alongside the binaries, and https://dl.polymesa.com/cli/versions.json lists all available versions.

After downloading manually, mark it executable and put it on your PATH:

Terminal window
chmod +x polymesa-aarch64-apple-darwin
sudo mv polymesa-aarch64-apple-darwin /usr/local/bin/polymesa

latest always points at the newest release. To pin, swap it for a version number:

Terminal window
curl -fsSLO https://dl.polymesa.com/cli/1.0.0/polymesa-x86_64-unknown-linux-gnu
Terminal window
polymesa --version
polymesa --help

If you have the repository and a Deno toolchain, you can compile it yourself:

Terminal window
cd cli
deno task install

That installs a polymesa shim onto your PATH that runs from source — handy while developing the CLI itself, since edits take effect without recompiling.

To produce a standalone binary instead:

Terminal window
deno compile \
--allow-read --allow-write --allow-net --allow-env \
--allow-run=open,xdg-open,cmd \
--output polymesa \
cli/main.ts

Authenticate, then deploy something: