Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions cli/azd/cmd/telemetry_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,7 @@ func TestCommandTelemetryCoverage(t *testing.T) {
"tool check", // tool.check.updates_available
"tool install", // tool.id(s), tool.dry_run, tool.install.* aggregate + per-tool fields
"tool show", // tool.id
"tool uninstall", // tool.id(s), tool.dry_run, tool.install.* aggregate + per-tool fields
"tool upgrade", // tool.id(s), tool.dry_run, tool.install.* aggregate + tool.upgrade.* versions
"up", // infra.provider (via hooks middleware, composes provision+deploy)
"update", // update.* fields
Expand Down
28 changes: 28 additions & 0 deletions cli/azd/cmd/testdata/TestFigSpec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6365,6 +6365,34 @@ const completionSpec: Fig.Spec = {
name: 'tool-name',
},
},
{
name: ['uninstall'],
description: 'Uninstall installed tools.',
options: [
{
name: ['--all'],
description: 'Uninstall all installed tools',
},
{
name: ['--dry-run'],
description: 'Preview what would be uninstalled without making changes',
},
{
name: ['--host'],
description: 'Uninstall the skill from the specified agent host(s): copilot, claude. Use --host all (or omit --host) to remove the skill from every host it is installed through (skill tools only)',
isRepeatable: true,
args: [
{
name: 'host',
},
],
},
],
args: {
name: 'tool-name...',
isOptional: true,
},
},
{
name: ['upgrade'],
description: 'Upgrade installed tools.',
Expand Down
22 changes: 22 additions & 0 deletions cli/azd/cmd/testdata/TestUsage-azd-tool-uninstall.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@

Uninstall installed tools.

Usage
azd tool uninstall [tool-name...] [flags]

Flags
--all : Uninstall all installed tools
--dry-run : Preview what would be uninstalled without making changes
--host strings : Uninstall the skill from the specified agent host(s): copilot, claude. Use --host all (or omit --host) to remove the skill from every host it is installed through (skill tools only)

Global Flags
-C, --cwd string : Sets the current working directory.
--debug : Enables debugging and diagnostics logging.
--docs : Opens the documentation for azd tool uninstall in your web browser.
-e, --environment string : The name of the environment to use.
-h, --help : Gets help for uninstall.
--no-prompt : Runs without prompts. Uses existing values; fails if any required value or decision cannot be resolved automatically.

Find a bug? Want to let us know how we're doing? Fill out this brief survey: https://aka.ms/azure-dev/hats.


11 changes: 6 additions & 5 deletions cli/azd/cmd/testdata/TestUsage-azd-tool.snap
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@ Usage
azd tool [command]

Available Commands
check : Check for tool updates.
install : Install specified tools.
list : List all tools with status.
show : Show details for a specific tool.
upgrade : Upgrade installed tools.
check : Check for tool updates.
install : Install specified tools.
list : List all tools with status.
show : Show details for a specific tool.
uninstall : Uninstall installed tools.
upgrade : Upgrade installed tools.

Global Flags
-C, --cwd string : Sets the current working directory.
Expand Down
Loading
Loading