Skip to content
Back to skills

Winget

ASecurity

Search, install, upgrade, and manage Windows packages via winget.

  • 21 stars
  • 0 votes
  • 0 copies
  • 11 views
  • Added September 7, 2026
toolsshell

Works with

  • terminal
  • cli

Security analysis

A100/100

Scanned September 7, 2026

npx -y skills add modbender/skill-library-mcp --skill winget --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Winget?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Winget
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/modbender-winget/badge)](https://www.skillsdirectory.com/skills/modbender-winget)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: winget
description: Search, install, upgrade, and manage Windows packages via winget.
metadata:
  {
    "openclaw":
      {
        "emoji": "📦",
        "os": ["win32"],
        "requires": { "bins": ["winget"] },
      },
  }
---

# winget

Windows Package Manager CLI for searching, installing, upgrading, and managing software.
The Windows equivalent of Homebrew.

## Commands

### Search for packages

```powershell
winget search <query> --disable-interactivity --accept-source-agreements
```

### Show package details

```powershell
winget show <package-id> --disable-interactivity --accept-source-agreements
```

### Install a package

```powershell
winget install <package-id> --accept-package-agreements --accept-source-agreements --disable-interactivity
```

Install a specific version:

```powershell
winget install <package-id> --version <version> --accept-package-agreements --accept-source-agreements --disable-interactivity
```

### Upgrade packages

Check for available upgrades:

```powershell
winget upgrade --disable-interactivity --accept-source-agreements
```

Upgrade a specific package:

```powershell
winget upgrade <package-id> --accept-package-agreements --accept-source-agreements --disable-interactivity
```

Upgrade all packages:

```powershell
winget upgrade --all --accept-package-agreements --accept-source-agreements --disable-interactivity
```

### List installed packages

```powershell
winget list --disable-interactivity --accept-source-agreements
```

Filter by name:

```powershell
winget list <query> --disable-interactivity --accept-source-agreements
```

### Uninstall a package

```powershell
winget uninstall <package-id> --disable-interactivity
```

### Export / Import

Export installed packages to a JSON file:

```powershell
winget export -o packages.json --accept-source-agreements --disable-interactivity
```

Import and install from a JSON file:

```powershell
winget import -i packages.json --accept-package-agreements --accept-source-agreements --disable-interactivity
```

## Examples

```powershell
# Search for VS Code
winget search "Visual Studio Code" --disable-interactivity --accept-source-agreements

# Install Firefox
winget install Mozilla.Firefox --accept-package-agreements --accept-source-agreements --disable-interactivity

# Show info about a package
winget show Microsoft.PowerToys --disable-interactivity --accept-source-agreements

# List all installed packages
winget list --disable-interactivity --accept-source-agreements

# Upgrade everything
winget upgrade --all --accept-package-agreements --accept-source-agreements --disable-interactivity
```

## Notes

- Always use `--disable-interactivity` and `--accept-source-agreements` flags for non-interactive agent use.
- Use `--accept-package-agreements` when installing or upgrading to skip license prompts.
- Package IDs follow the `Publisher.PackageName` format (e.g., `Mozilla.Firefox`, `Microsoft.PowerToys`).
- Sources: `winget` (community repo) and `msstore` (Microsoft Store).
- Some installs require admin/elevated privileges. If a command fails, suggest the user run it in an elevated terminal.
- For WSL: prefix commands with `cmd.exe /c` or `powershell.exe -Command` to call the Windows-side winget.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in tools →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.