Searches and fetches developer documentation from the official Android Knowledge Base.
Usage
android docs [-h]
Options
-h,--help- Shows the help message for the specified command.
android options:
--sdk=PARAM- Path to the Android SDK.-v,--verbose- Enable verbose output for troubleshooting.-V,--version- Print version information and exit.
Subcommands
fetch- Fetches an Android documentation article from a URL starting withkb://.search- Searches Android documentation. Enclose keywords in quotes.
Description
The android docs command set provides two-step access to the official Android Knowledge Base directly from your terminal:
- Run
android docs searchwith a natural-language query or keywords to find matching documentation articles and theirkb://URLs. - Run
android docs fetchwith akb://URL returned bysearchto output the full Markdown content of the article to standard output.
Examples
Search for articles about app performance and fetch a matching result:
android docs search "How do I improve my app performance?"
android docs fetch kb://android/topic/performance/overview