# WinGet

Relevant:

<table data-view="cards"><thead><tr><th></th><th></th><th></th></tr></thead><tbody><tr><td><a href="/pages/7T6jFtuuBngtPgQyNME0#unigetui-for-windows">UniGetUI</a><br>Placeholder</td><td></td><td></td></tr><tr><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td></tr></tbody></table>

## WinGet: A Powerful Package Manager for Windows

### Overview

**WinGet** is the official Windows Package Manager developed by Microsoft, designed to help users easily discover, install, upgrade, and manage software packages directly from the command line. It provides an efficient way to manage software installations without needing to navigate individual websites or download installers manually. **WinGet** is ideal for developers, power users, and those who want to maintain an organized, up-to-date system without hassle.

### Key Features of WinGet

* **Command-Line Simplicity**: With a simple command, you can search, install, or upgrade software—taking care of dependencies and ensuring you get the latest version directly from trusted sources.
* **Repository Access**: WinGet pulls packages from a centralized repository, ensuring all software comes from verified and official publishers, reducing the risk of malware and unsafe downloads.
* **Automated Updates**: Easily check for and apply updates to installed software, ensuring you are always running the latest, most secure versions.
* **Batch Installation**: Users can create scripts that include multiple software packages, making it simple to set up a new development environment with all required tools.

### Why Use WinGet?

* **Time-Saving**: Instead of manually downloading each installer from the web, **WinGet** allows you to install applications with just one command, making the setup and installation process much faster.
* **Developer-Friendly**: For developers setting up a new machine, **WinGet** can automate the installation of all necessary development tools, environments, and utilities, making onboarding or transitioning systems smooth.
* **Integrated with Windows**: As an official Microsoft tool, **WinGet** integrates deeply into Windows, making it reliable and well-supported.

### Getting Started with WinGet

1. **Installation**: If you're running a recent version of Windows 10 or 11, **WinGet** is likely already installed. If not, you can get it through the **App Installer** from the Microsoft Store.
2. **Basic Commands**:
   * **Search for a package**: `winget search [package-name]`
   * **Install a package**: `winget install [package-name]`
   * **Upgrade installed software**: `winget upgrade`
   * **Uninstall a package**: `winget uninstall [package-name]`

### Examples of Usage

* **Installing Visual Studio Code**:

  ```bash
  winget install Microsoft.VisualStudioCode
  ```
* **Upgrading All Installed Packages**:

  ```bash
  winget upgrade --all
  ```
* **Creating a Batch Installation Script**: You can use WinGet commands in a script to install multiple packages at once:

  ```bash
  winget install git.git
  winget install Microsoft.VisualStudioCode
  winget install python.python.3
  ```

### Advanced Tips

* **Exporting and Importing Packages**: You can export a list of all installed packages and use **WinGet** to import them on a new machine, simplifying migration or new setups.
  * Export: `winget export -o packages.json`
  * Import: `winget import packages.json`
* **Custom Repositories**: You can add third-party repositories if you need packages not found in the default repository, expanding the range of available software.

### Conclusion

**WinGet** is a powerful tool for managing software installations on Windows, offering a streamlined approach to handling applications without bloat or manual downloading. Whether you’re setting up a development environment, maintaining a work machine, or simply want to keep your software up to date effortlessly, **WinGet** provides the functionality you need in a straightforward package.

Start experimenting with **WinGet** today and see how much time you can save managing your system!


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://hypersanity.gitbook.io/hs/windows/coding/dev-resources/winget.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
