android docs

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 with kb://.
  • 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:

  1. Run android docs search with a natural-language query or keywords to find matching documentation articles and their kb:// URLs.
  2. Run android docs fetch with a kb:// URL returned by search to 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