Skip to content

Install the CLI

The leaf command-line tool builds, manages, and deploys static sites to LeafCloud.

The installers verify the signed release checksum manifest before installing. On macOS and Linux, signature verification uses minisign when available, or OpenSSL 3 with Ed25519 and BLAKE2b-512 support. On Windows, install minisign with winget install jedisct1.minisign or scoop install minisign. If no verifier is available, the installer stops. To deliberately install without signature verification, set LEAF_ALLOW_UNSIGNED=1; the installer prints a warning.

Install the CLI using the official shell script:

Terminal window
curl -fsSL https://leafcloud.in/install.sh | sh

Run the following command in PowerShell:

Terminal window
irm https://leafcloud.in/install.ps1 | iex

Check that leaf is installed and accessible in your shell PATH:

Terminal window
leaf --version

Expected output:

leaf 0.1.0

When run interactively in a terminal without --json, CI=1, or LEAF_NO_BANNER=1, leaf displays the version along with the LeafCloud banner.

To update to the latest release, re-run the installation command for your operating system. The script will replace the existing binary with the latest release. To install a specific release, pass --version VERSION to the shell script or set LEAF_VERSION before running either installer.

To uninstall leaf, remove the binary location reported during installation (~/.local/bin/leaf on Unix-like systems or %LOCALAPPDATA%\leaf\bin\leaf.exe on Windows).

To clear stored credentials and settings, remove the configuration folder:

Terminal window
rm -rf ~/.config/leaf