android-cli

Orchestrates Android project creation, SDK management, and device deployment via the android CLI.

2|Updated Mar 7, 2025
One-click install
npx skills add https://github.com/AbdelrhmanUZaki/KnowledgeNuggets --skill android-cli-abdelrhmanuzaki
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: android-cli
Source: https://github.com/AbdelrhmanUZaki/KnowledgeNuggets/tree/main/2-setup/shared/gemini/config/plugins/android-cli-plugin/skills
Command: npx skills add https://github.com/AbdelrhmanUZaki/KnowledgeNuggets --skill android-cli-abdelrhmanuzaki

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Managing Android development tasks like creating projects, installing SDK packages, deploying APKs, and inspecting devices requires memorizing many disparate commands. This Skill consolidates those workflows into guided usage of the android command-line tool. ## Core Features & Use Cases - Project & SDK Management: Create projects from templates and install, update, or remove SDK packages with the create and sdk commands. - Device & Emulator Control: Deploy APKs, manage Android Virtual Devices, capture screenshots, and inspect UI layout trees as JSON. - Documentation Search: Query the Android Knowledge Base with android docs for up-to-date API guidance, migration guides, and best practices. - Use Case: You need to spin up a new app, install the required SDK platform, launch an emulator, and deploy a debug build. This Skill walks through each step using the corresponding CLI commands. ## Quick Start Use the android CLI to create a new empty-activity project named My App and install the Android 34 SDK platform.

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?▼

Use the android create command with a template name, for example: android create empty-activity --name="My App" --output=./my-app. You can list all available templates with the --list flag and set a minimum SDK level with --minSdk.

How to install Android SDK packages using the android CLI?▼

Run android sdk install followed by package names, optionally with versions, such as android sdk install platforms/android-34. Use android sdk list --all to see installed and available packages, and android sdk update to upgrade them.

How do I deploy and run an APK on an Android device?▼

Use the android run command with options like --device to target a specific device serial, --activity to choose the launch activity, and --debug for debug mode. You can also pass specific APK paths with the --apks flag.

Can I manage Android emulators from the command line?▼

Yes, the android emulator command supports create, start, stop, list, and remove subcommands for managing Android Virtual Devices. The start command returns only when the emulator is fully booted and ready to use.

How do I inspect an Android app's UI layout without screenshots?▼

Use the android layout command, which returns the app's layout tree in JSON format. Add --pretty for readable output, --diff to see only changed elements, or -o to write the tree to a file.

What platforms does the android CLI support?▼

The android CLI provides installers for Linux (x86_64), macOS (arm64), and Windows (x86_64) via curl-based install scripts. After installation, run android init to initialize the environment and android info to verify SDK configuration.