CLI & Developers
In addition to web consoles and workbenches, Leaflow provides an official CLI, multi-language SDKs, and an interactive API Explorer for scripting and system integration.
Install the leaflow CLI
Section titled “Install the leaflow CLI”Both installers verify downloaded checksums automatically:
curl -fsSL https://raw.githubusercontent.com/LeaflowNET/leaflow/main/install.sh | shInstalls to ~/.local/bin and enables shell completion by default. Optional environment variables:
LEAFLOW_VERSION: Install a specific version (defaults to latest)LEAFLOW_INSTALL_DIR: Override the binary install directoryLEAFLOW_NO_COMPLETION: Skip shell completion setup
irm https://raw.githubusercontent.com/LeaflowNET/leaflow/main/install.ps1 | iexInstalls to %LOCALAPPDATA%\Programs\leaflow and adds it to your PATH.
Official SDKs
Section titled “Official SDKs”| Language | Installation | Public Repository |
|---|---|---|
| Go | go get github.com/leaflowapis/leaflow-go/<service> |
leaflowapis/leaflow-go |
| TypeScript / JS | npm install @leaflow/sdk |
leaflowapis/leaflow-ts |
| Rust | cargo add leaflow-<service> --git https://github.com/leaflowapis/leaflow-rs |
leaflowapis/leaflow-rs |
Public OpenAPI and protocol contracts are published at leaflowapis/leaflowapis.
Interactive API Explorer
Section titled “Interactive API Explorer”For complete endpoint schemas, error codes, and live request testing, open Leaflow API Explorer (leaflow.cloud) and sign in with your Leaflow account.