Skip to content

CLI & SDK guideThe CLI

Installing toft

Install the toft command-line client on Linux, macOS or Windows, and keep it current.

View as Markdown

toft is Toft’s command-line client: one binary, no runtime, no daemon. It pushes the directory on your disk to an install, watches the build, and reads the logs afterwards.

Terminal window
curl -fsSL https://raw.githubusercontent.com/larchway-labs/toft-cli/main/install.sh | sh

The script downloads the binary for your machine, checks it against the release’s SHA256SUMS, and puts it in /usr/local/bin if you can write there, otherwise in ~/.local/bin. It never uses sudo.

Option Effect
--version X.Y.Z Install that release. latest follows the newest one.
--dir DIR Install into DIR.
-q, --quiet Print only the installed path.

Pass options through the pipe with sh -s --:

Terminal window
curl -fsSL https://raw.githubusercontent.com/larchway-labs/toft-cli/main/install.sh | sh -s -- --version 0.7.0

Download toft_windows_amd64.exe, rename it toft.exe, and put it on your PATH:

Terminal window
curl.exe -fsSLo toft.exe https://github.com/larchway-labs/toft-cli/releases/latest/download/toft_windows_amd64.exe
OS Architectures Release asset
Linux amd64, arm64 toft_linux_amd64, toft_linux_arm64
macOS Intel, Apple Silicon toft_darwin_amd64, toft_darwin_arm64
Windows amd64 toft_windows_amd64.exe

Releases live at larchway-labs/toft-cli, which holds binaries and checksums, not source. To verify a manual download:

Terminal window
grep toft_linux_amd64 SHA256SUMS | sha256sum -c
Terminal window
toft --version
# toft 0.7.0 (build 4f2a1c9e…)

The build id tells two binaries with the same version number apart. A local go build prints no build id.

An older toft works against a newer install. It prints one dimmed line saying so and carries on.

Re-run the install script to upgrade. Your sign-in in ~/.config/toft is kept. On Windows, replace toft.exe with the new download.

To uninstall:

Terminal window
rm "$(command -v toft)"
rm -rf ~/.config/toft

Deleting the config directory does not revoke your keys. Revoke them under Your account → Credentials on the install.

  • Sign in to an install.
  • Deploy a directory.
  • Call the platform from your code with the SDK.