Install

One command, one binary, nothing to configure.

curl -fsSL https://ecko.sh/install | sh

The installer detects your platform, downloads the matching archive, verifies its SHA-256 before unpacking, and installs ecko to /usr/local/bin if you can write there, or to ~/.local/bin otherwise - it never runs sudo for you. Set ECKO_INSTALL_DIR to choose the directory. If that directory is not on your PATH, the installer prints the export PATH=... line to add. It makes no API calls and needs no account. On Windows, use the manual install below.

What you get

A single static binary. No runtime to install, no package manager, no node_modules, no virtualenv. The standard library is compiled in: import std.http gives you an HTTP server, import std.sql gives you SQLite.

Supported platforms

platformarchitectures
Linuxx86-64, arm64
macOSApple Silicon
Windowsx86-64

Intel Macs are not supported. An Apple Silicon binary cannot run on one, and Rosetta translates the other direction, so there is nothing to fall back to.

The Linux builds link OpenSSL statically and are compiled against an old glibc, so they run on distributions considerably older than the build machine.

Manual install

If you would rather not pipe a script to a shell, the archives are plain downloads:

https://ecko.sh/dl/latest/ecko-x86_64-linux.tar.gz
https://ecko.sh/dl/latest/ecko-aarch64-linux.tar.gz
https://ecko.sh/dl/latest/ecko-aarch64-macos.tar.gz
https://ecko.sh/dl/latest/ecko-x86_64-windows.zip

Each has a .sha256 beside it:

curl -fsSLO https://ecko.sh/dl/latest/ecko-x86_64-linux.tar.gz
curl -fsSLO https://ecko.sh/dl/latest/ecko-x86_64-linux.tar.gz.sha256
shasum -a 256 -c ecko-x86_64-linux.tar.gz.sha256
tar -xzf ecko-x86_64-linux.tar.gz
sudo install -m 0755 ecko /usr/local/bin/ecko

On Windows, unzip and move ecko.exe somewhere on your PATH.

Pinning a version

Swap latest for a tag:

https://ecko.sh/dl/v0.64.0/ecko-x86_64-linux.tar.gz

The install script takes the same tag in ECKO_VERSION:

curl -fsSL https://ecko.sh/install | ECKO_VERSION=v0.64.0 sh

https://ecko.sh/dl/latest.txt names the tag that latest currently points at, which is what to read from a script that wants to detect upgrades.

Check it worked

ecko --version

Then write your first program.

Upgrading and removing

Re-run the install command to upgrade; it overwrites in place. To remove Ecko, delete the binary. There is no registry and no configuration file. The only other things it may leave are the REPL's history in ~/.ecko_history and, once you have run ecko scaffold, its template cache in ~/.cache/ecko/templates (the platform cache directory). A project's vendor/ directory belongs to the project, not the toolchain.