One-click install
npx skills add https://github.com/android/skills --skill android-cli-android
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: android-cli
Source: https://github.com/android/skills/tree/main/devtools/android-cli
Command: npx skills add https://github.com/android/skills --skill android-cli-android

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Android developers need a reliable way to create projects, manage SDKs, deploy apps, inspect UIs, and diagnose environments without switching between multiple tools.

Core Features & Use Cases

  • Project creation & scaffolding: Create Android projects from official templates with consistent outputs.
  • SDK management: Install, update, remove, and list SDK packages using the android sdk command set.
  • Device interaction & app execution: Run apps, manage emulators (create/start/stop/list/remove), and capture or inspect screens and UI layouts via android run, android emulator, android screen, and android layout.
  • Android documentation lookup: Search authoritative Android documentation using the Android Knowledge Base through the android docs command for up-to-date API guidance.
  • Skill management workflow: Initialize and manage antigravity agent skills with android skills and related tooling.

Quick Start

Ask your agent to set up and run a new empty-activity project named My App by using the android create command with output directed to your chosen directory.

Frequently Asked Questions about android-cli

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a new Android project from the command line?

To create an Android project, use the `android create` command with official templates to scaffold consistent project outputs directly into your chosen directory. This orchestrates project initialization without requiring multiple external tools.

How do I manage Android SDK packages from the terminal?

You can manage Android SDK packages using the `android sdk` command set to install, update, remove, and list SDK packages. This provides a reliable way to handle SDK tooling without switching contexts.

Can I control Android emulators and deploy apps using a single CLI?

Yes, you can control emulators and deploy apps using the `android emulator` command to create, start, stop, and remove emulators, alongside `android run` to execute app deployment on connected devices.

How do I capture device screenshots and inspect UI layouts?

Capture device screenshots and inspect UI layouts by using the `android screen` and `android layout` commands. These commands capture screen visuals and extract UI layout JSON for detailed inspection.

What is the best way to search Android documentation locally?

The best way to search Android documentation is using the `android docs` command, which queries the Android Knowledge Base to retrieve up-to-date API guidance and authoritative documentation.

Does this Android CLI tool require any specific dependencies to run?

No specific dependencies are required to run this Android CLI tool. It operates independently to provide command-line orchestration for project creation, SDK management, emulator control, and environment diagnostics.