> ## Documentation Index
> Fetch the complete documentation index at: https://www.testmuai.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# How to Install Kane CLI

> Install Kane CLI using npm or Homebrew. Supports macOS (Apple Silicon and Intel), Linux (x64 and arm64), and Windows (x64).

Kane CLI is published to the public npm registry as `@testmuai/kane-cli` and to a Homebrew tap. Install it with `npm` or `brew` to get the `kane-cli` command on your `PATH`.

## Install

> [tab] npm
>
> Requires Node.js 18 or higher.
>
> ```bash theme={null}
> npm install -g @testmuai/kane-cli
> ```
>
> npm installs the native binary for your OS automatically, with no extra configuration. This works on every platform in the [Platform Support](#platform-support) table, including Linux arm64 (aarch64).
>
> If your global `npm` prefix is not on `PATH`, add it before you run `kane-cli`. Find the prefix with `npm config get prefix`. The `kane-cli` binary is in `<prefix>/bin` on macOS and Linux, and in `<prefix>` on Windows.

> [tab] Homebrew
>
> For macOS and Linux. Node.js is not required.
>
> ```bash theme={null}
> brew install LambdaTest/kane/kane-cli
> ```
>
> Homebrew also installs Google Chrome for you through the `google-chrome` cask, so you need no extra setup.

> [!NOTE]
>
> Kane CLI requires **Google Chrome** on your system. Chrome is the automation browser, and Kane CLI launches it automatically when you run a test. The npm install also requires **Node.js 18 or higher**. The Homebrew install bundles Chrome for you and needs no Node.js.

## Install with pnpm or yarn

Kane CLI does not support installation with **pnpm**. pnpm keeps packages in a nested `node_modules/.pnpm/` store, which puts the project-root `node_modules/` deeper on disk than npm does. Kane CLI looks for its platform-specific `v16-runner` binary by searching up the directory tree, and that search does not reach far enough in a pnpm layout. The runner is never found and the CLI stops. You see a silent exit with status 2 shortly after startup. See [CLI exits with code 2 and no output](https://www.testmuai.com/docs/kane-cli-troubleshooting.md#cli-exits-with-code-2-and-no-output) in the troubleshooting guide. [Issue #24](https://github.com/LambdaTest/kane-cli/issues/24) tracks this limitation.

Install Kane CLI with one of the supported methods instead:

* **npm**, globally (`npm install -g @testmuai/kane-cli`, above).
* **Homebrew** on macOS or Linux (`brew install LambdaTest/kane/kane-cli`). Does not require Node.
* The **shell installer** on any POSIX system (`curl -fsSL https://raw.githubusercontent.com/LambdaTest/kane-cli/main/install.sh | sh`).

yarn (classic and Berry) is not verified end to end. If you use yarn, install with Homebrew or the shell installer instead.

## Verify

Confirm the install by printing the version:

```bash theme={null}
kane-cli --version
```

Expected output:

```text theme={null}
0.1.0
```

If the command is not found, your shell is not seeing the npm global `bin` directory. Open a new terminal or update `PATH`, then try again.

## Platform Support

Kane CLI ships native binaries for the following platforms. When you install the main package, the matching binary is installed automatically.

| Platform | Architecture | Supported |
| - | - | - |
| macOS | Apple Silicon (ARM) | ✅ |
| macOS | Intel (x64) | ✅ |
| Linux | x64 | ✅ |
| Linux | arm64 (aarch64) | ✅ |
| Windows | x64 | ✅ |

> [!NOTE]
>
> **Mobile testing**, the iOS Simulator and the Android Emulator, runs on your own machine on **macOS Apple Silicon (arm64) only**. See [Mobile Testing](https://www.testmuai.com/docs/kane-cli-mobile.md) for the simulator and emulator prerequisites. On every other platform, mobile suites run on the cloud grid with [`testrun run --remote`](https://www.testmuai.com/docs/kane-cli-remote-execution), which needs no mobile tooling on your machine.

## Update

When you launch Kane CLI, it checks the npm registry for a newer version, at most once every 24 hours. If one is available, the CLI prints a one-line notice at startup with the current and latest versions. The check runs in the background and never delays startup. If the network is unavailable, Kane CLI skips the check silently.

Upgrade with:

```bash theme={null}
npm install -g @testmuai/kane-cli@latest
```

After upgrading, run `kane-cli --version` to confirm the new version is active.

## Uninstall

Remove the global package:

```bash theme={null}
npm uninstall -g @testmuai/kane-cli
```

This removes the `kane-cli` binary but keeps your local data. Kane CLI stores credentials, configuration, sessions, and Chrome profile data under `~/.testmuai/kaneai/`. To delete that data too:

```bash theme={null}
rm -rf ~/.testmuai/kaneai
```

Do this only if you want a clean reset. It logs you out of all profiles and deletes saved configuration, session history, and command history.

## Troubleshooting Installation

**`kane-cli: command not found` after install**

Your npm global bin directory is not in your PATH. Find it and add it:

```bash theme={null}
# Find your npm global bin directory
npm config get prefix

# The kane-cli binary lives in <prefix>/bin on macOS/Linux, and <prefix> on Windows
# Add it to your PATH in ~/.zshrc or ~/.bashrc
export PATH="$(npm config get prefix)/bin:$PATH"

```

**Installation fails on Node 16**

Kane CLI requires Node.js 18+. Check your version and upgrade if needed:

```bash theme={null}
node --version
```

## Plugins

Some capabilities ship as plugins. Kane CLI installs them under `~/.testmuai/kaneai/plugins/`, with each version kept separately. The plugin you are most likely to need is `remote-execution`. It provides the HyperExecute binary that [`kane-cli testrun run --remote`](https://www.testmuai.com/docs/kane-cli-remote-execution) uses:

```bash theme={null}
kane-cli plugin install remote-execution      # install (add --version <v> to pin one)
kane-cli plugin list                          # what is installed, with versions
kane-cli plugin doctor remote-execution       # readiness: installed, binary present, logged in
kane-cli plugin remove remote-execution
```

## Next Step

[Quick Start](https://www.testmuai.com/docs/kane-cli-quickstart.md): Authenticate and run your first test.

* [Authentication](https://www.testmuai.com/docs/kane-cli-authentication.md)
* [Remote Runs](https://www.testmuai.com/docs/kane-cli-remote-execution.md)

## Terminal First Testing With Kane CLI

Natural language browser & mobile app tests right from terminal.

Book a Demo

![Kane CLI terminal](https://assets.testmu.ai/resources/images/Terminal-KaneCLI.png)

×

Schedule Your Personal Demo

<form>
  Select Product

  Schedule Demo
</form>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.