Install
Both 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.
Pick the broker you want docs/install flow for:
Kite CLI
Zerodha Kite Connect v3 → Techriff.KiteCli → binary kite
Dhan CLI
DhanHQ API v2 → Techriff.DhanCli → binary dhan
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.
Verify the install
Section titled “Verify the install”After installing either CLI, run its --help and the auth-status check:
kite --helpkite auth status --json --no-color
dhan --helpdhan auth status --json --no-colorEach 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.