| name | android-cli-setup |
| description | Use when checking, updating, initializing, or configuring the official Android CLI for agent workflows, including android update, android init, android info, command discovery, and .androidrc SDK configuration. |
Android CLI Setup
Use the official android command only. Do not download alternate binaries or create fallback wrappers.
Workflow
- Confirm the CLI is installed:
command -v android
android -V
- Confirm SDK configuration:
android info
android --sdk="$HOME/Library/Android/sdk" info
- Update the CLI when requested or when troubleshooting CLI behavior:
android update
- Install official Android CLI agent support:
android init
- If repeated SDK flags are needed, configure
~/.androidrc with:
--sdk=/absolute/path/to/Android/sdk
Rules
- Treat failed
android commands as blockers to report, not as permission to bypass Android CLI.
- Do not modify
~/.androidrc unless the user asks or the current task requires persistent SDK configuration.
- Prefer
android <command> -h over memory when a command shape is unclear.