Install
The broker CLIs ship as self-contained .NET 10 binaries — no .NET runtime install required. They’re published per-platform as single-file archives on the broker-specific dist repositories. Jorli Agent currently installs from a repository checkout and bundles both broker CLIs — see its dedicated install guide.
Pick the tool you want the docs/install flow for:
Jorli Agent
Guarded strategy agent → source install → binary jorli (installs kite + dhan too)
Kite CLI
Zerodha Kite Connect v3 → Techriff.KiteCli → binary kite
Dhan CLI
DhanHQ API v2 → Techriff.DhanCli → binary dhan
Jorli Agent
Section titled “Jorli Agent”Jorli Agent is installed from the Jorli repository and its install scripts also install or
upgrade the kite and dhan binaries:
cd jorli-agent./install/install.sh # macOS / Linux / WSL./install/install.ps1 # Windows PowerShellFull prerequisites, first-run setup, and doctor checks are covered in the Jorli Agent install guide.
Kite CLI
Section titled “Kite CLI”curl -fsSL https://cli.jorli.in/install/kite.sh | shDefault install dir: $HOME/.local/bin (override via INSTALL_DIR).
irm https://cli.jorli.in/install/kite.ps1 | iexDefault install dir: $env:LOCALAPPDATA\Programs\kite-cli (auto-added to user PATH).
Download the matching archive from
ssswagatss/kite-cli-dist,
extract, and put kite / kite.exe on your PATH.
Dhan CLI
Section titled “Dhan CLI”curl -fsSL https://cli.jorli.in/install/dhan.sh | shDefault install dir: $HOME/.local/bin (override via INSTALL_DIR).
irm https://cli.jorli.in/install/dhan.ps1 | iexDefault install dir: $env:LOCALAPPDATA\Programs\dhan-cli (auto-added to user PATH).
Download the matching archive from
ssswagatss/dhan-cli-dist,
extract, and put dhan / dhan.exe on your PATH.
Agent skills (optional)
Section titled “Agent skills (optional)”Teach coding agents every command, the --json --no-color contract, and live-trading
guardrails. Skill source lives in each CLI GitHub project (skills/ folder) and is
mirrored to the public dist repos:
npx skills add ssswagatss/kite-cli-dist --skill kite-clinpx skills add ssswagatss/dhan-cli-dist --skill dhan-cliGlobal, all agents: add -g --agent '*' -y. Full details: Agent skills.
Verify the install
Section titled “Verify the install”After installing, run each tool’s --help and the auth-status/doctor check:
kite --helpkite auth status --json --no-color
dhan --helpdhan auth status --json --no-color
jorli doctor # if you installed Jorli AgentEach command should print structured JSON without colour codes. If command not found,
your PATH doesn’t include the install directory.
Supported platforms
Section titled “Supported platforms”Both CLIs ship self-contained, single-file binaries for six runtime identifiers:
| OS | Architectures |
|---|---|
| Windows | win-x64, win-arm64 |
| Linux | linux-x64, linux-arm64 |
| macOS | osx-x64, osx-arm64 |
Builds are trimmed-free (-p:PublishTrimmed=false) to keep reflection-based table rendering reliable.
Updating
Section titled “Updating”Both CLIs have an update command that prints the URL of the latest release — they do
not auto-update.
kite update --json --no-color# { "latestReleaseUrl": "https://github.com/ssswagatss/kite-cli-dist/releases/latest" }
dhan update --json --no-color# { "latestReleaseUrl": "https://github.com/ssswagatss/dhan-cli-dist/releases/latest" }Re-run the install script for your platform, or download the archive from the release URL and replace the binary manually.
Build from source
Section titled “Build from source”Each CLI can be built from source with the .NET SDK (10+). The solution files use the
new XML .slnx format.
git clone https://github.com/ssswagatss/<cli>-cli # source repos are currently privatecd <cli>-clidotnet restore <Cli>.slnxdotnet build <Cli>.slnx --no-restoredotnet test <Cli>.slnx --no-buildReplace <Cli> with KiteCli or DhanCli as appropriate.