Skip to content

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.

Both installers verify downloaded checksums automatically:

终端窗口
curl -fsSL https://raw.githubusercontent.com/LeaflowNET/leaflow/main/install.sh | sh

Installs 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 directory
  • LEAFLOW_NO_COMPLETION: Skip shell completion setup
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.

For complete endpoint schemas, error codes, and live request testing, open Leaflow API Explorer (leaflow.cloud) and sign in with your Leaflow account.