CLI Reference

This page is generated from the Node CLI registry and command sources.

Use this page as a command index. Detailed behavior, output shapes, and recovery guidance live in the authored API pages.

Command Index

Command Details Summary
operator Setup Install the Operator APK and configure the device
host Setup Set up durable host artifacts owned by the CLI
install Setup Run the CLI-owned post-bootstrap install flow for device remediation, bundled skills, and host setup
devices Devices List connected Android devices
emulator Emulator provisioning Manage Android emulators (AVDs)
packages Devices List installed packages on a device
exec Execution payload Execute a validated command payload
evidence Still evidence bundles Capture a screenshot and raw hierarchy evidence bundle
snapshot Action: snapshot Get current Android UI hierarchy as XML
screenshot Action: take_screenshot Capture a screenshot from the device
swipe Action: swipe Swipe between screen coordinates with an explicit duration
drag Action: drag Drag between screen coordinates with explicit hold and movement durations
gesture CLI: gesture Move one finger through a list of points without lifting
back-gesture CLI: back-gesture Swipe in from a screen edge as the system Back gesture, optionally cancelling it
click Action: click Tap the first matching UI element
open Actions: open_app / open_uri Open an app, URL, or URI on the device
type Action: enter_text Type text into the first matching UI element
query Action: query_ui Inspect matching nodes and their current state
read Action: read_text Read text from the first matching UI element
wait Action: wait_for_node Wait until a matching UI element appears
press Action: press_key Press a navigation key, TV button, car input, or Wear OS control
back Action: press_key Press the Android back key
close Action: close_app Force-stop an Android application
toast Toast actions Show or cancel an Operator-owned text toast
set-wallpaper Set wallpaper Apply a static Android wallpaper without opening a picker
on-screen-log On-screen logs Show, replace, or clear a static on-device diagnostic panel
sleep Action: sleep Pause execution for a duration
scroll Action: scroll Scroll the screen in a direction
scroll-until Action: scroll_until Scroll until a target element is visible
scroll-and-click Action: scroll_and_click Scroll until target is visible, then click it (alias for scroll-until --click)
wait-for-nav Action: wait_for_navigation Wait for app or screen navigation to complete
read-value Action: read_key_value_pair Read the value associated with a labeled element
bundled-skills Host agent orientation Manage first-party bundled skills for Claude Code, Codex, and generic agent runtimes
recording api/recording Manage recording sessions on the Operator app
daemon Daemon Manage the background Unix socket daemon
android-auto Android Auto Desktop Head Unit Manage an Android Auto Desktop Head Unit session
serve Serve API Start local HTTP/SSE server for remote control
mcp MCP server Start the first-party MCP server
logs Logging Tail the Androperator log file
notifications Notifications Inspect and control active notifications
media Media sessions Inspect and control media sessions
doctor Doctor contract Run environment and runtime checks
grant-device-permissions Setup recovery Re-grant accessibility and notification permissions
version Version checks Show the CLI version

Commands

operator

Install the Operator APK and configure the device

  • Group: Setup
  • Syntax: operator setup --apk <path> [--device <id>] [--operator-package <package>], operator download [--operator-package <package>], operator remediate [--operator-package <package>]
  • Primary flags: --apk, --operator-package
  • Details: Setup
  • See also: Doctor contract
  • Subcommands: setup, install, download, remediate

host

Set up durable host artifacts owned by the CLI

  • Group: Setup
  • Syntax: host setup [--installed-at <iso8601>] [--cli-version <version>] [--apk-version <version>] [--last-device-serial <serial>]
  • Primary flags: --installed-at, --cli-version, --apk-version, --last-device-serial
  • Details: Setup
  • Subcommands: setup

install

Run the CLI-owned post-bootstrap install flow for device remediation, bundled skills, and host setup

  • Group: Setup
  • Syntax: install [--operator-package <package>]
  • Primary flags: --operator-package
  • Details: Setup

devices

List connected Android devices

emulator

Manage Android emulators (AVDs)

  • Group: Device Management
  • Syntax: emulator list, emulator inspect <name>, emulator create [--name <name>], emulator start <name>, emulator stop <name>, emulator delete <name>, emulator status, emulator provision
  • Primary flags: --name, --storage-size
  • Details: Emulator provisioning
  • See also: Devices
  • Alias notes: provision emulator is an alias for emulator provision.
  • Subcommands: list, inspect, create, start, stop, delete, status, provision

packages

List installed packages on a device

  • Group: Device Management
  • Syntax: packages list [--device <id>] [--operator-package <pkg>] [--third-party]
  • Primary flags: --third-party
  • Details: Devices

exec

Execute a validated command payload

  • Group: Execution
  • Syntax: exec <json-or-file> [--validate-only] [--dry-run] [--device <id>] [--operator-package <package>], exec best-effort --goal <text> [--device <id>] [--operator-package <package>]
  • Primary flags: --payload, --validate-only, --dry-run, --goal, --no-daemon
  • Details: Execution payload
  • See also: Actions
  • Command aliases: execute

evidence

Capture a screenshot and raw hierarchy evidence bundle

  • Group: Device Interaction
  • Syntax: evidence capture --output-dir <new-directory>, evidence video <start|status|stop>
  • Primary flags: --output-dir, --label, --context-json, --duration-seconds, --size, --session
  • Details: Still evidence bundles

snapshot

Get current Android UI hierarchy as XML

  • Group: Device Interaction
  • Syntax: snapshot [--device <id>] [--operator-package <pkg>]
  • Primary flags: --no-daemon, --compact, --max-nodes, --max-text-chars, --raw-path
  • Details: Action: snapshot
  • Action links: snapshot
  • Command aliases: snapshot-ui, snapshot_ui

screenshot

Capture a screenshot from the device

  • Group: Device Interaction
  • Syntax: screenshot [--device <id>] [--operator-package <pkg>] [--path <file>]
  • Primary flags: --path, --scale, --no-daemon
  • Details: Action: take_screenshot
  • Action links: take_screenshot
  • Command aliases: take-screenshot, take_screenshot, capture-screenshot

swipe

Swipe between screen coordinates with an explicit duration

  • Group: Device Interaction
  • Syntax: swipe --start <x> <y> --end <x> <y> --duration-ms <ms>
  • Primary flags: --start, --end, --duration-ms, --no-daemon
  • Details: Action: swipe
  • Action links: swipe

drag

Drag between screen coordinates with explicit hold and movement durations

  • Group: Device Interaction
  • Syntax: drag --start <x> <y> --end <x> <y> --hold-duration-ms <ms> --move-duration-ms <ms>
  • Primary flags: --start, --end, --hold-duration-ms, --move-duration-ms, --no-daemon
  • Details: Action: drag
  • Action links: drag

gesture

Move one finger through a list of points without lifting

  • Group: Device Interaction
  • Syntax: gesture --path "<x>,<y> <x>,<y> ..." --duration-ms <ms> [--hold-ms <ms>]
  • Primary flags: --path, --duration-ms, --hold-ms, --no-daemon
  • Details: CLI: gesture
  • Action links: drag

back-gesture

Swipe in from a screen edge as the system Back gesture, optionally cancelling it

  • Group: Device Interaction
  • Syntax: back-gesture [--edge left|right] [--cancel] [--hold-ms <ms>]
  • Primary flags: --edge, --y, --distance, --duration-ms, --hold-ms, --cancel, --no-daemon
  • Details: CLI: back-gesture
  • Action links: drag

click

Tap the first matching UI element

  • Group: Device Interaction
  • Syntax: click --text <text> | --id <id> | --role <role> [--device <id>] [--operator-package <pkg>]
  • Primary flags: --strict, --container-json, --text, --id, --desc, --role, --coordinate, --long, --focus, --no-daemon
  • Details: Action: click
  • Action links: click
  • Command aliases: tap

open

Open an app, URL, or URI on the device

  • Group: Device Interaction
  • Syntax: open <package-id|url|uri> [--device <id>] [--operator-package <pkg>]
  • Primary flags: --app, --navigation-timeout-ms, --skip-navigation-wait, --no-daemon
  • Details: Actions: open_app / open_uri
  • Action links: open_app, open_uri
  • Command aliases: open-app, open_app, open-uri, open-url, open_uri, open_url

type

Type text into the first matching UI element

  • Group: Device Interaction
  • Syntax: type <text> --role <role> | --id <id> [--device <id>] [--operator-package <pkg>]
  • Primary flags: --strict, --container-json, --id, --desc, --role, --submit, --clear, --no-daemon
  • Details: Action: enter_text
  • Action links: enter_text
  • Command aliases: fill, enter-text, enter_text

query

Inspect matching nodes and their current state

  • Group: Device Interaction
  • Syntax: query [--matcher-json <json>] [--visibility <on_screen|all>] [--limit <n>]
  • Primary flags: --matcher-json, --text, --id, --role, --visibility, --limit, --no-daemon
  • Details: Action: query_ui
  • Action links: query_ui

read

Read text from the first matching UI element

  • Group: Device Interaction
  • Syntax: read --text <text> | --id <id> | --role <role> [--device <id>] [--operator-package <pkg>]
  • Primary flags: --strict, --container-json, --text, --id, --desc, --role, --all, --validate-only, --dry-run, --no-daemon
  • Details: Action: read_text
  • Action links: read_text
  • See also: Selectors
  • Command aliases: read-text, read_text

wait

Wait until a matching UI element appears

  • Group: Device Interaction
  • Syntax: wait --text <text> | --id <id> | --role <role> [--device <id>] [--operator-package <pkg>] [--timeout <ms>]
  • Primary flags: --strict, --container-json, --text, --id, --desc, --role, --no-daemon
  • Details: Action: wait_for_node
  • Action links: wait_for_node
  • Command aliases: wait-for, wait_for, wait-for-node, wait_for_node, find, find-node, find_node

press

Press a navigation key, TV button, car input, or Wear OS control

  • Group: Device Interaction
  • Syntax: press <key> [--device <id>] [--operator-package <pkg>]
  • Primary flags: --key, --no-daemon
  • Details: Action: press_key
  • Action links: press_key
  • Command aliases: press-key, press_key

back

Press the Android back key

  • Group: Device Interaction
  • Syntax: back [--device <id>] [--operator-package <pkg>]
  • Primary flags: --no-daemon
  • Details: Action: press_key
  • Action links: press_key

close

Force-stop an Android application

  • Group: Device Interaction
  • Syntax: close <package> [--device <id>] [--operator-package <pkg>]
  • Primary flags: --app, --no-daemon
  • Details: Action: close_app
  • Action links: close_app
  • Command aliases: close-app, close_app

toast

Show or cancel an Operator-owned text toast

  • Group: Device Interaction
  • Syntax: toast <text> [--duration short|long] | toast --cancel
  • Primary flags: --duration, --cancel, --no-daemon
  • Details: Toast actions

set-wallpaper

Apply a static Android wallpaper without opening a picker

  • Group: Device Interaction
  • Syntax: set-wallpaper <local-image> --target <home|lock|both>
  • Primary flags: --target
  • Details: Set wallpaper

on-screen-log

Show, replace, or clear a static on-device diagnostic panel

  • Group: Device Interaction
  • Syntax: on-screen-log set|clear [--device <id>] [--operator-package <pkg>]
  • Primary flags: --text, --template, --anchor, --text-align, --top-offset-dp, --edge-offset-dp, --width-dp, --font-size-sp, --text-color, --background-color, --ttl-ms, --no-daemon
  • Details: On-screen logs
  • Subcommands: set, clear

sleep

Pause execution for a duration

  • Group: Device Interaction
  • Syntax: sleep <ms> [--device <id>] [--operator-package <pkg>]
  • Primary flags: --no-daemon
  • Details: Action: sleep
  • Action links: sleep

scroll

Scroll the screen in a direction

  • Group: Device Interaction
  • Syntax: scroll <down|up|left|right> [--container-id <id>] [--device <id>] [--operator-package <pkg>]
  • Primary flags: --strict, --container-json, --direction, --no-daemon
  • Details: Action: scroll
  • Action links: scroll

scroll-until

Scroll until a target element is visible

  • Group: Device Interaction
  • Syntax: scroll-until [<direction>] --text <text> [--click] [--device <id>] [--operator-package <pkg>]
  • Primary flags: --strict, --container-json, --text, --id, --desc, --role, --click, --direction, --no-daemon
  • Details: Action: scroll_until
  • Action links: scroll_until
  • Command aliases: scroll_until

scroll-and-click

Scroll until target is visible, then click it (alias for scroll-until --click)

  • Group: Device Interaction
  • Syntax: scroll-and-click [<direction>] --text <text> [--device <id>] [--operator-package <pkg>]
  • Primary flags: --strict, --container-json, --text, --id, --desc, --role, --direction, --no-daemon
  • Details: Action: scroll_and_click
  • Action links: scroll_and_click
  • Command aliases: scroll_and_click

wait-for-nav

Wait for app or screen navigation to complete

  • Group: Device Interaction
  • Syntax: wait-for-nav --app <package> --timeout <ms> [--device <id>] [--operator-package <pkg>]
  • Primary flags: --app, --timeout, --text, --id, --desc, --role, --validate-only, --dry-run, --no-daemon
  • Details: Action: wait_for_navigation
  • Action links: wait_for_navigation
  • Command aliases: wait-for-navigation, wait_for_navigation

read-value

Read the value associated with a labeled element

  • Group: Device Interaction
  • Syntax: read-value --label <text>
  • Primary flags: --label, --label-id, --label-desc, --all, --validate-only, --dry-run, --no-daemon
  • Details: Action: read_key_value_pair
  • Action links: read_key_value_pair
  • Command aliases: read-kv, read-key-value-pair, read_key_value_pair

bundled-skills

Manage first-party bundled skills for Claude Code, Codex, and generic agent runtimes

  • Group: Execution
  • Syntax: bundled-skills list, bundled-skills install, bundled-skills update
  • Primary flags: -
  • Details: Host agent orientation
  • See also: Skills overview
  • Subcommands: install, update, list

recording

Manage recording sessions on the Operator app

  • Group: Recording
  • Syntax: recording start [--session-id <id>] [--device <serial>] [--operator-package <pkg>], recording stop, recording pull, recording export --input <file|directory> [--out <file>] [--snapshots <omit|include>]
  • Primary flags: --session-id, --out, --input, --snapshots
  • Details: api/recording
  • Command aliases: record
  • Subcommands: export

daemon

Manage the background Unix socket daemon

  • Group: Execution
  • Syntax: daemon start|stop|status|restart [--device <id>]
  • Primary flags: -
  • Details: Daemon

android-auto

Manage an Android Auto Desktop Head Unit session

serve

Start local HTTP/SSE server for remote control

  • Group: Execution
  • Syntax: serve [--port <number>] [--host <string>]
  • Primary flags: --port, --host
  • Details: Serve API

mcp

Start the first-party MCP server

  • Group: Execution
  • Syntax: mcp serve
  • Primary flags: -
  • Details: MCP server

logs

Tail the Androperator log file

  • Group: Utilities
  • Syntax: logs
  • Primary flags: -
  • Details: Logging

notifications

Inspect and control active notifications

  • Group: Observation
  • Syntax: notifications <list|dismiss|action>
  • Primary flags: --app, --limit, --max-text-chars, --wait-timeout-ms, --action
  • Details: Notifications

media

Inspect and control media sessions

  • Group: Observation
  • Syntax: media <list|status|observe|pause|play|seek>
  • Primary flags: --app, --session, --duration-ms, --limit, --max-text-chars, --wait-timeout-ms, --position-ms, --position-tolerance-ms
  • Details: Media sessions

doctor

Run environment and runtime checks

  • Group: Setup
  • Syntax: doctor, doctor --fix, doctor --full, doctor --check-only
  • Primary flags: --fix, --full, --check-only, --capability
  • Details: Doctor contract

grant-device-permissions

Re-grant accessibility and notification permissions

  • Group: Setup
  • Syntax: grant-device-permissions [--device <id>] [--operator-package <package>]
  • Primary flags: -
  • Details: Setup recovery

version

Show the CLI version

  • Group: Setup
  • Syntax: version, version --check-compat [--device <id>] [--operator-package <package>]
  • Primary flags: --check-compat
  • Details: Version checks