From 25ba9e52aeeb58067882caa82d2532484debbbaf Mon Sep 17 00:00:00 2001 From: "aspire-repo-bot[bot]" <268009190+aspire-repo-bot[bot]@users.noreply.github.com> Date: Sat, 30 May 2026 20:42:27 +0000 Subject: [PATCH 1/3] docs: update aspire add command to document exact-match requirement and interactive confirmation behavior Documents the behavior changes from microsoft/aspire#17728: - Non-interactive mode now requires an exact friendly name or package ID - Interactive mode now prompts before adding fuzzy/no-match fallback candidates Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .../docs/reference/cli/commands/aspire-add.mdx | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/frontend/src/content/docs/reference/cli/commands/aspire-add.mdx b/src/frontend/src/content/docs/reference/cli/commands/aspire-add.mdx index 1188a6b8e..7eed08db2 100644 --- a/src/frontend/src/content/docs/reference/cli/commands/aspire-add.mdx +++ b/src/frontend/src/content/docs/reference/cli/commands/aspire-add.mdx @@ -38,7 +38,10 @@ The following arguments are available: The name of the integration to add (for example: redis, postgres). - If a partial name or invalid name is provided, the CLI searches NuGet for approximate matches and prints them in the terminal for the user to select. If no results are found, all packages are listed. + The value must exactly match either the friendly name or the full package ID (for example, `redis` or `Aspire.Hosting.Redis`). Partial or misspelled names are handled differently depending on the mode: + + - **Interactive mode** (default): If the name doesn't exactly match, the CLI searches NuGet for approximate matches and prompts you to select from the results before adding. This prompt is also shown when only a single fuzzy or no-match fallback candidate is found, so a package is never silently added without your confirmation. + - **Non-interactive mode** (`--non-interactive`): The command fails immediately if the name does not exactly match a friendly name or package ID. Use the exact name or full package ID to avoid errors. ## Options @@ -85,3 +88,9 @@ The following options are available: ```bash title="Aspire CLI" aspire add redis --apphost './apphost.mts' ``` + +- Add the **kubernetes** integration in a CI script (non-interactive mode requires the exact friendly name or package ID; partial names such as `kube` produce an error): + + ```bash title="Aspire CLI" + aspire add kubernetes --non-interactive + ``` From 2e53b22fb2677ea7d35d14efd023c2d2bdcf3eaf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Ros?= Date: Sat, 30 May 2026 14:32:00 -0700 Subject: [PATCH 2/3] Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --- .../src/content/docs/reference/cli/commands/aspire-add.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontend/src/content/docs/reference/cli/commands/aspire-add.mdx b/src/frontend/src/content/docs/reference/cli/commands/aspire-add.mdx index 7eed08db2..0dae6ded4 100644 --- a/src/frontend/src/content/docs/reference/cli/commands/aspire-add.mdx +++ b/src/frontend/src/content/docs/reference/cli/commands/aspire-add.mdx @@ -38,7 +38,7 @@ The following arguments are available: The name of the integration to add (for example: redis, postgres). - The value must exactly match either the friendly name or the full package ID (for example, `redis` or `Aspire.Hosting.Redis`). Partial or misspelled names are handled differently depending on the mode: + Exact friendly names or full package IDs (for example, `redis` or `Aspire.Hosting.Redis`) are added directly. Partial or misspelled names are handled differently depending on the mode: - **Interactive mode** (default): If the name doesn't exactly match, the CLI searches NuGet for approximate matches and prompts you to select from the results before adding. This prompt is also shown when only a single fuzzy or no-match fallback candidate is found, so a package is never silently added without your confirmation. - **Non-interactive mode** (`--non-interactive`): The command fails immediately if the name does not exactly match a friendly name or package ID. Use the exact name or full package ID to avoid errors. From 16f8d27176cd1f0a6e65d83a0f64bf7b56eda613 Mon Sep 17 00:00:00 2001 From: David Pine <7679720+IEvangelist@users.noreply.github.com> Date: Sat, 30 May 2026 17:57:53 -0500 Subject: [PATCH 3/3] Address review feedback (1 thread) - Clarify exact matches skip package selection but can still prompt for a version (PRRT_kwDOQK_VN86F5n7b) Verified against microsoft/aspire@2574ef57e97fc393aff67592fd442afca6a6d02f on branch release/13.4. Edited per the doc-writer skill. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .../src/content/docs/reference/cli/commands/aspire-add.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontend/src/content/docs/reference/cli/commands/aspire-add.mdx b/src/frontend/src/content/docs/reference/cli/commands/aspire-add.mdx index 0dae6ded4..31a1b8a01 100644 --- a/src/frontend/src/content/docs/reference/cli/commands/aspire-add.mdx +++ b/src/frontend/src/content/docs/reference/cli/commands/aspire-add.mdx @@ -38,7 +38,7 @@ The following arguments are available: The name of the integration to add (for example: redis, postgres). - Exact friendly names or full package IDs (for example, `redis` or `Aspire.Hosting.Redis`) are added directly. Partial or misspelled names are handled differently depending on the mode: + Exact friendly names or full package IDs (for example, `redis` or `Aspire.Hosting.Redis`) skip the package-selection prompt. In interactive mode, you might still be prompted to choose a version if multiple versions are available. Partial or misspelled names are handled differently depending on the mode: - **Interactive mode** (default): If the name doesn't exactly match, the CLI searches NuGet for approximate matches and prompts you to select from the results before adding. This prompt is also shown when only a single fuzzy or no-match fallback candidate is found, so a package is never silently added without your confirmation. - **Non-interactive mode** (`--non-interactive`): The command fails immediately if the name does not exactly match a friendly name or package ID. Use the exact name or full package ID to avoid errors.