## Bring Android CLI to your
terminal and coding agent

Download Android CLI and start building in about two minutes. It connects your terminal directly to Android Studio's code intelligence and platform tools. Use it yourself or hand the same commands to the coding agent you already work with. Download options for all platforms

## Linux

-

  ### Download for Linux using curl \| bash

  **Local installation**


  Install the CLI only for your user account. Local installation does
  not require elevated permissions.

  ```
  curl -fsSL https://dl.google.com/android/cli/latest/linux_x86_64/install.sh | bash
  ```

  **Global installation**


  Install the CLI for all users on this machine. Global installation
  requires sudo or admin privileges.

  ```
  curl -fsSL https://dl.google.com/android/cli/latest/linux_x86_64/install_root.sh | bash
  ```
-

  ### Download for Linux using apt-get

  Configure the repository and install the package:

  ```
  curl -fsSL https://dl.google.com/linux/linux_signing_key.pub | sudo tee /etc/apt/keyrings/google.asc >/dev/null
  sudo sh -c 'echo "deb [arch=amd64 signed-by=/etc/apt/keyrings/google.asc] http://dl.google.com/android/cli/latest/debian/ stable main" > /etc/apt/sources.list.d/android-cli.list'
  sudo apt-get update
  sudo apt-get install android-cli
  ```
-

  ### Download for Linux directly


  [Download Android CLI for Linux](https://dl.google.com/android/cli/latest/linux_x86_64/android)

## Mac with Apple chip

-

  ### Download for Mac with Apple chip using curl \| bash

  **Local installation**


  Install the CLI only for your user account. Local installation does
  not require elevated permissions.

  ```
  curl -fsSL https://dl.google.com/android/cli/latest/darwin_arm64/install.sh | bash
  ```

  **Global installation**


  Install the CLI for all users on this machine. Global installation
  requires sudo or admin privileges.

  ```
  curl -fsSL https://dl.google.com/android/cli/latest/darwin_arm64/install_root.sh | bash
  ```
-

  ### Download for Mac with Apple chip using Homebrew


  Android CLI is available through a Homebrew tap. Make sure that you
  have [Homebrew](https://brew.sh/)
  installed before proceeding.

  ```
  brew tap android/tap
  brew install android-cli
  ```
-

  ### Download for Mac with Apple chip directly


  [Download Android CLI for Mac with Apple chip](https://dl.google.com/android/cli/latest/darwin_arm64/android)

## Mac with Intel chip

-

  ### Download for Mac with Intel chip using curl \| bash

  **Local installation**


  Install the CLI only for your user account. Local installation does
  not require elevated permissions.

  ```
  curl -fsSL https://dl.google.com/android/cli/latest/darwin_x86_64/install.sh | bash
  ```

  **Global installation**


  Install the CLI for all users on this machine. Global installation
  requires sudo or admin privileges.

  ```
  curl -fsSL https://dl.google.com/android/cli/latest/darwin_x86_64/install_root.sh | bash
  ```
-

  ### Download for Mac with Intel chip using Homebrew


  Android CLI is available through a Homebrew tap. Make sure that you
  have [Homebrew](https://brew.sh/)
  installed before proceeding.

  ```
  brew tap android/tap
  brew install android-cli
  ```
-

  ### Download for Mac with Intel chip directly


  [Download Android CLI for Mac with Intel chip](https://dl.google.com/android/cli/latest/darwin_x86_64/android)

## Windows

-

  ### Download for Windows directly


  [Download Android CLI for Windows](https://dl.google.com/android/cli/latest/windows_x86_64/android.exe)
-

  ### Download for Windows using curl \| cmd

  **Local installation**


  Install the CLI only for your user account. Local installation does
  not require elevated permissions.

  ```
  curl.exe -fsSL https://dl.google.com/android/cli/latest/windows_x86_64/install.cmd -o "%TEMP%\i.cmd" && "%TEMP%\i.cmd"
  ```

  **Global installation**


  Install the CLI for all users on this machine. Global installation
  requires sudo or admin privileges.

  ```
  curl.exe -fsSL https://dl.google.com/android/cli/latest/windows_x86_64/install_admin.cmd -o "%TEMP%\i.cmd" && "%TEMP%\i.cmd"
  ```
-

  ### Download for Windows using winget

  ```
  winget install --id Google.AndroidCLI
  ```


[Open standalone download page](https://developer.android.com/tools/agents/android-cli/download.md.txt)

## See Android CLI in action

## Works with the tools you already use

![](https://developer.android.com/static/images/ai-tools/cli/codex.svg) Codex ![](https://developer.android.com/static/images/ai-tools/cli/cursor.svg) Cursor ![](https://developer.android.com/static/images/logos/android-studio.svg) Android Studio ![](https://developer.android.com/static/images/ai-tools/cli/antigravity.svg) Antigravity ![](https://developer.android.com/static/images/ai-tools/cli/claude.svg) Claude Code

## Same workflow, now with
Android capabilities


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

## From setup to building in four steps

![](http://developer.android.com/static/cli/images/android-cli-terminal.png) ![](https://developer.android.com/static/images/cluster-illustrations/tools.svg) Step 1

### Build and Run

Create projects, manage the toolchain, and run apps
![](https://developer.android.com/static/images/picto-icons/actionable.svg) Step 2

### Test and Inspect

Work with devices, emulators, screens, and layouts
![](https://developer.android.com/static/images/picto-icons/catalog-3.svg) Step 3

### Ground with Skills

Access Android skills and current platform guidance
![](https://developer.android.com/static/images/logos/android-studio.svg) Step 4

### Prepare to scale

Continue to Android Studio for specialized IDE workflows
![](http://developer.android.com/static/cli/images/android-cli-logo.png)

## Essential commands in a single interface

[Download Android CLI](https://developer.android.com/tools/agents/android-cli/download.md.txt) ![](http://developer.android.com/static/images/picto-icons/frame.svg)

### 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. ![](http://developer.android.com/static/images/picto-icons/layout.svg)

### Debug layouts

Use android layout to return the active app's layout tree as JSON from a connected physical device or emulator. ![](http://developer.android.com/static/images/logos/android-studio.svg)

### Bring Android Studio analysis to the terminal

Access file analysis, declaration lookup, usage discovery, and Compose preview rendering from the command line. ![](http://developer.android.com/static/images/picto-icons/hardware.svg)

### Manage Virtual Devices

Create, manage, and run Android Virtual Devices or connect via Android Device Streaming directly from your terminal.

## Integrates into your workflow

[![](http://developer.android.com/static/images/cluster-illustrations/tools.svg)](http://developer.android.com/tools/agents/android-skills.md.txt)

### [Android skills](http://developer.android.com/tools/agents/android-skills.md.txt)

Give coding agents expert Android guidance and best practices, helping them work from current platform knowledge rather than relying only on model training data. [Explore Android skills](http://developer.android.com/tools/agents/android-skills.md.txt) [![](http://developer.android.com/static/images/picto-icons/pathway-2.svg)](http://developer.android.com/tools/agents/android-cli/journeys.md.txt)

### [Terminal \& automation workflows](http://developer.android.com/tools/agents/android-cli/journeys.md.txt)

Bring Android CLI into scripts, CI, maintenance tasks, and supported automated validation workflows. [Run Journeys](http://developer.android.com/tools/agents/android-cli/journeys.md.txt) [![](http://developer.android.com/static/images/picto-icons/puzzle.svg)](http://developer.android.com/tools/agents/android-cli/agent-plugins.md.txt)

### [Agent plugins](http://developer.android.com/tools/agents/android-cli/agent-plugins.md.txt)

Now available for Antigravity, Claude Code, and Codex. Add the official Android CLI plugin to give your agent Android tools, devices, and platform knowledge. [Get the plugin](http://developer.android.com/tools/agents/android-cli/agent-plugins.md.txt)

## Ready to start building?


Use the command below to install official Android tools and resources that can be used
with your preferred agent to bring your ideas to life across any screen.
[View download options](https://developer.android.com/cli.md.txt#all-downloads) [Open standalone download page](https://developer.android.com/tools/agents/android-cli/download.md.txt)