CLI & SDK guideThe CLI
Installing toft
Install the toft command-line client on Linux, macOS or Windows, and keep it current.
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.
Linux and macOS
Section titled “Linux and macOS”curl -fsSL https://raw.githubusercontent.com/larchway-labs/toft-cli/main/install.sh | shThe 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 --:
curl -fsSL https://raw.githubusercontent.com/larchway-labs/toft-cli/main/install.sh | sh -s -- --version 0.7.0Windows
Section titled “Windows”Download toft_windows_amd64.exe, rename it toft.exe, and put it on your
PATH:
curl.exe -fsSLo toft.exe https://github.com/larchway-labs/toft-cli/releases/latest/download/toft_windows_amd64.exePlatforms
Section titled “Platforms”| 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:
grep toft_linux_amd64 SHA256SUMS | sha256sum -cCheck the version
Section titled “Check the version”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.
Upgrade and uninstall
Section titled “Upgrade and uninstall”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:
rm "$(command -v toft)"rm -rf ~/.config/toftDeleting the config directory does not revoke your keys. Revoke them under Your account → Credentials on the install.