Skip to content

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:

Terminal window
curl -fsSL https://cli.jorli.in/install/kite.sh | sh

Default install dir: $HOME/.local/bin (override via INSTALL_DIR).

Terminal window
curl -fsSL https://cli.jorli.in/install/dhan.sh | sh

Default install dir: $HOME/.local/bin (override via INSTALL_DIR).

After installing either CLI, run its --help and the auth-status check:

Terminal window
kite --help
kite auth status --json --no-color
dhan --help
dhan auth status --json --no-color

Each command should print structured JSON without colour codes. If command not found, your PATH doesn’t include the install directory.

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.

Both CLIs have an update command that prints the URL of the latest release — they do not auto-update.

Terminal window
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.

Each CLI can be built from source with the .NET SDK (10+). The solution files use the new XML .slnx format.

Terminal window
git clone https://github.com/ssswagatss/<cli>-cli # source repos are currently private
cd <cli>-cli
dotnet restore <Cli>.slnx
dotnet build <Cli>.slnx --no-restore
dotnet test <Cli>.slnx --no-build

Replace <Cli> with KiteCli or DhanCli as appropriate.