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.
Installation
Section titled “Installation”macOS and Linux
Section titled “macOS and Linux”Install the CLI using the official shell script:
curl -fsSL https://leafcloud.in/install.sh | shWindows (PowerShell)
Section titled “Windows (PowerShell)”Run the following command in PowerShell:
irm https://leafcloud.in/install.ps1 | iexVerify installation
Section titled “Verify installation”Check that leaf is installed and accessible in your shell PATH:
leaf --versionExpected output:
leaf 0.1.0When run interactively in a terminal without --json, CI=1, or LEAF_NO_BANNER=1, leaf displays the version along with the LeafCloud banner.
Updating
Section titled “Updating”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.
Uninstalling
Section titled “Uninstalling”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:
rm -rf ~/.config/leaf