Skip to main content

Commands

kane-cli --tui

Launch the interactive TUI.

kane-cli run

Run a browser automation test.
If a {{name}} in the objective has no value, kane-cli prints a warning and the run continues. The name is typed literally as written, unless a step sets its value first. The warning does not change the exit code. See Unresolved variables. Mobile run flags. The emulator and simulator targets need macOS Apple Silicon. The android and ios targets run on a real device in the cloud, from any machine. A real device comes from the device hub, the cloud service that hands out real devices to test sessions. On the desktop target, the device flags and --app are ignored. See Mobile Testing for setup.

kane-cli doctor

Check the mobile tooling this machine needs for one target, emulator or simulator, and install the tooling Kane CLI manages for it. --target is required.
doctor prints one line per required check, each with a fix. Run kane-cli login before --install. See Mobile Testing.

kane-cli devices list

List the emulators, simulators, or real devices Kane CLI can run against. --target is required: emulator, simulator, android, or ios. android and ios list the real devices in the cloud and take --remote. To choose a device for a run, pass --device-name and --os-version exactly as the list prints them.
See Remote Runs for the grid catalog.

kane-cli apps list

List the uploaded builds your account can use for a target: emulator, simulator, android, or ios (android and ios list real-device builds). The APP ID column is what --app and kane-cli config set-app accept.

kane-cli testmd run

Run a test from one _test.md file. For each step, Kane CLI either replays a cached recording or authors a fresh one.
testmd run accepts the shared run flags (--url, --allow-missing-url, --headless, --max-steps, --timeout, --cdp-endpoint, --ws-endpoint, the context and variable flags, --username / --access-key, --mode, --bug-detection, --assertion-mode, --final-validation, --agent, the code export flags, and the mobile flags). --network-ws, --network-sse, and --analyzer-only work only with run. These flags are available only on testmd run: Adaptive healing is on by default. After a replay failure, the runner tries up to three smaller and smaller replay windows, then fully re-authors the authorable steps. The --retry and --retry-count flags are accepted but have no effect: they only print a notice. Adaptive healing handles failed replays. Before any step runs, kane-cli checks every {{name}} used by the authored steps. A name with no value prints a warning and the run continues. Replayed steps are not checked. Under --agent, wait for both the test_md_done event and the process exit. kane-cli testmd export <path> regenerates the code export from existing recordings and takes --language (python or javascript), not --code-language. See Running test.md files for the full flag reference and the other testmd subcommands (list, status, delete, export, sync).

kane-cli testrun run

Run many authored _test.md files as one execution: one summary, one exit code, and one sealed evidence pack for the whole suite.
Each path you pass must be a _test.md file. To select a directory of tests, use --match on the project-relative path instead of passing the directory. Adaptive healing is on by default; --no-adaptive-heal turns it off. The --retry and --retry-count flags are accepted but have no effect: they only print a notice. A local suite that contains an emulator or simulator member must use --parallel 1. Real-device members can run in parallel, up to the real devices your plan allows. testrun run has no --variables flag. To supply values, fill the shared variables file or the member’s own variables: frontmatter. A member that uses a {{name}} with no value still passes preflight, with a warning. See Batch runs (testrun).

kane-cli maintain evolve

Re-design the parent use-case of a test, scenario, acceptance criterion, or use-case. Before anything runs, kane-cli always states the blast radius: the scenario and test pairs it will re-design.
See Maintaining the suite and Assurance automation for the event stream.

kane-cli plugin

Manage the plugins Kane CLI installs under ~/.testmuai/kaneai/plugins/. The one you are most likely to need is remote-execution, which owns the HyperExecute binary behind kane-cli testrun run --remote.

kane-cli login

Authenticate with . Opens a browser for OAuth, or accepts credentials for basic auth.
See Authentication for details on profiles and auth methods.

kane-cli logout

Revoke tokens and remove stored credentials for the active profile.

kane-cli whoami

Show the active profile and authentication status.
Prints profile, environment, auth method, username, and token state (for OAuth).

kane-cli balance

Show credit balance for the active profile.

kane-cli profiles

Manage named authentication profiles.
See Authentication: Profiles for details.

kane-cli config

View and modify persistent settings.
Commands without arguments (chrome-profile, project, folder) launch an interactive picker UI. AI agents cannot run these: ask the user to run them directly.
See Configuration for the full settings reference.

kane-cli feedback

Submit feedback on a completed test run.

Exit Codes

kane-cli run

Under --analyzer-only, exit 0 means all conditions were judged, not that all are true. Exit 1 means a result was missing, and 3 means cancelled. An unresolved-variable warning does not change the exit code.

kane-cli testmd run

kane-cli testrun run

With --dry-run, exit 0 means the plan is valid and exit 2 means the plan was refused.

kane-cli maintain evolve --mode agent

The final done event carries the status: complete (exit 0), refused (exit 2: a usage error, MODE_USAGE, ANSWER_USAGE, or an explicit target that was never designed), paused (exit 3: evolve is waiting on its question or on the design session), or error with the design run’s own code. For generate and the assurance commands, see Generate workflow and Assurance automation. Always check the process exit code: an early refusal, an invalid plan, or a dry run can exit without the normal completion event.

TUI Slash Commands


Keyboard Shortcuts


Settings Reference

Settings are stored at ~/.testmuai/kaneai/tui-config.json. See Configuration for details.

Directory Structure