
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.
screen capture --annotate to capture the running app and label detected UI elements for developers and agents to inspect.android layout to return the active app's layout tree as JSON from a connected physical device or emulator.Android CLI is available for Linux, macOS, and Windows. You can install it using various methods:
| Platform | Method |
|---|---|
| Linux | curl -fsSL ... | bash or apt-get install android-cli |
| macOS | brew install android-cli |
| Windows | winget install Google.AndroidCLI or standalone .exe |