# 使用 Homebrew Cask 安装 android-cli

查看 android-cli 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install cask:android-cli
```

其他安装命令:

### macOS

- Homebrew Cask (100%):

```sh
brew install --cask android-cli
```

  证据: local Homebrew cask metadata

## 软件包事实

- **软件包键:** cask:android-cli
- **软件包管理器:** Homebrew Cask
- **软件包管理器页面:** <https://formulae.brew.sh/cask/android-cli>
- **版本:** 1.0.16261425
- **来源摘要:** Command-line interface for Android app development with AI agents
- **主页:** <https://developer.android.com/tools/agents/android-cli>
- **上游文档:** <https://developer.android.com/tools/agents/android-cli>
- **源码归档:** <https://dl.google.com/android/cli/1.0.15985488/darwin_arm64/android>
- **最后更新:** 2026-09-09T13:59:28+02:00
- **已生成:** 2026-09-19T06:45:57+00:00

## 可执行文件

- android (二进制)
- android (别名)

## 安装行为

- post-install 钩子: 未定义
- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-09-19
- 管理器版本: 1.0.16261425
- 管理器更新时间: 2026-09-09
- 本地数据: OK
- 上游仓库: https://developer.android.com/tools/agents/android-cli
- 信息: Release/tag comparison is only available for GitHub repositories.
## 项目历史与用法

Android CLI is Google's command-line interface for Android application development, automation, and agent-first workflows.

### 项目历史

Google's Android developer team introduced Android CLI as a standardized command-line entry point for agent-first Android development. The tool brings environment setup, project scaffolding, SDK and virtual-device management, testing journeys, and Android Studio interaction into a common command hierarchy.

### 采用历史

Android CLI entered the Android developer-tooling ecosystem as an agent-oriented companion to established Android tools. Its official workflow supports human-operated terminals, scripts, CI and coding agents, and android init installs an official Android CLI skill for agents.

### 使用方式

Users invoke android commands to update the tool, inspect environments, create and run projects, manage SDK components and virtual devices, execute test journeys, and interact with Android Studio. The android init command installs agent guidance, while ~/.androidrc or %USERPROFILE%\.androidrc supplies default command-line flags.

### 为什么软件包爱好者会关心

Android CLI is noteworthy because Google packages higher-level Android workflows behind one self-updating command while explicitly designing its interface for automation and coding agents. It complements rather than replaces the Android SDK, Android Studio, Gradle, and emulator tooling.

### 时间线

- 2026: Official Android CLI documentation described the tool as an agent-first interface for Android development and automation.

### Related projects

- Android SDK command-line tools and Android Studio.
- The official android/skills repository, which provides the Android CLI skill and Android knowledge resources.
- Gradle-based Android application projects.

### 来源

- <https://developer.android.com/tools/agents/android-cli>
- <https://github.com/android/skills/tree/main/devtools/android-cli>


## 安全说明

没有找到 android-cli 的匹配本地密钥处理 manifest。软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 URL。



## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: ~/.androidrc
- Windows: %USERPROFILE%\.androidrc
## 源数据库详情

- **Source Database:** Homebrew cask API
- **Tap:** homebrew/cask
- **Full Token:** android-cli
- **Names:** Android CLI
- **Artifacts:** Binary: 1, Target: 1, Zap: 1
- **Deprecated:** no
- **Disabled:** no

## 其他软件包管理器记录

- Nix - android-cli: normalized package name match | nixpkgs package indexes: pkgs/by-name/an/android-cli/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- winget - Google.AndroidCLI: normalized package name match | Windows Package Manager source index: Google.AndroidCLI from https://cdn.winget.microsoft.com/cache/source.msix
- MacPorts - android: installed executable or alias match | MacPorts ports tree: java/android/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## 相关链接

- [Homebrew Cask packages](https://pkg.so/zh-hans/homebrew-cask-packages/) - Generated from Homebrew Cask package-manager metadata.
- [Homebrew Cask binaries](https://pkg.so/zh-hans/homebrew-cask-binaries/) - Cask artifact metadata includes a binary.

## Combined YAML source

View the package source record on GitHub. [combined/android-cli.yml](https://github.com/mxcl/pkgdb/blob/main/combined/android-cli.yml)


## 来源

- pkg.so package database
- package-page enrichment
- curated configuration and credential file locations
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
