AIToolScan

Android CLI - Official Command-Line Interface for Android Development

Bring Android CLI to your terminal and coding agent

Android CLI is the official command-line interface for Android development, designed to connect your terminal directly to Android Studio's code intelligence and platform tools. It allows developers and coding agents to build, test, and debug Android applications without leaving the terminal.

Operating alongside your coding agent (like Claude Code, Cursor, or Codex), Android CLI provides a unified interface for interacting with Android tools, devices, workflows, and up-to-date platform guidelines. You can execute these commands seamlessly from terminal sessions, automated scripts, or CI pipelines.

Key Features

  • Capture what's on screen. Use screen capture --annotate to capture the running app and label detected UI elements for developers and agents to inspect.
  • Debug layouts. Use android layout to return the active app's layout tree as JSON from a connected physical device or emulator.
  • Studio Intelligence in Terminal. Access file analysis, declaration lookup, usage discovery, and Compose preview rendering from the command line.
  • Manage Virtual Devices. Create, manage, and run Android Virtual Devices or connect via Android Device Streaming directly from your terminal.
  • Agent Plugins. Official plugins available for Antigravity, Claude Code, and Codex to give agents direct access to Android tools.

Installation

Android CLI is available for Linux, macOS, and Windows. You can install it using various methods:

PlatformMethod
Linuxcurl -fsSL ... | bash or apt-get install android-cli
macOSbrew install android-cli
Windowswinget install Google.AndroidCLI or standalone .exe

Links