aspire docs search command
aspire docs search - Search Aspire documentation by keywords.
Synopsis
Section titled “Synopsis”aspire docs search <query> [options]Description
Section titled “Description”The aspire docs search command performs a relevance-ranked search across the Aspire documentation on aspire.dev. Results include the page title, slug, matching section, and a relevance score.
The ranker rewards exact title, slug, and heading matches and uses inverse document frequency (IDF) weighting so common terms such as new or azure count less than specific terms. Version separators are normalized so queries like whats new 13.5, what's new 13-5, and whats new 135 all match the same pages. Explicit release-note queries (for example, whats new 13.5 or changelog) surface What’s New pages at the top, while incidental mentions in feature docs do not outrank the dedicated pages.
The slugs returned in search results can be passed to the aspire docs get command to retrieve the full content of a matching page.
Arguments
Section titled “Arguments”-
<query>The search query. For best results, use multi-word phrases that match the title or heading you are looking for (for example,
"service discovery"or"azure container apps environment"). Specific API names, configuration keys, and feature names work well. Version numbers in the form13.5,13-5, or135are all equivalent and match What’s New pages for that release.
Options
Section titled “Options”The following options are available:
-
--format <Table|Json>Output format. Choose
Tablefor a human-readable table orJsonfor machine-readable JSON output. Defaults toTable. -
-n, --limit <limit>Maximum number of search results to return. Defaults to
5, with a maximum of10. -
-?, -h, --helpPrints help and usage documentation for the available commands and options.
-
-l, --log-level <Critical|Debug|Error|Information|None|Trace|Warning>Set the minimum log level for console output. Use this option to increase diagnostics while troubleshooting or reduce output in scripted runs.
-
--non-interactiveRun the command in non-interactive mode, disabling all interactive prompts and spinners.
-
--nologoSuppress the startup banner and telemetry notice.
-
--bannerDisplay the animated Aspire CLI welcome banner.
-
--wait-for-debuggerWait for a debugger to attach before running a command.
Examples
Section titled “Examples”-
Search for documentation about Redis:
Aspire CLI aspire docs search "redis" -
Search for What’s New content for a specific release:
Aspire CLI aspire docs search "whats new 13.5" -
Find documentation for a multi-word feature by phrase:
Aspire CLI aspire docs search "service discovery"aspire docs search "azure container apps environment" -
Search with a custom result limit:
Aspire CLI aspire docs search "service defaults" --limit 3 -
Search and output results in JSON format:
Aspire CLI aspire docs search "deployment" --format Json