> ## Documentation Index
> Fetch the complete documentation index at: /docs/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Bach builds Windows installers from one bach.toml with the bach command: bach init, bach check, bach preview, bach build. Installs are per user and need no administrator rights by default. installer.scope = "machine" installs for every user after one Windows prompt. On Windows, run setup files with Start-Process -Wait -PassThru in PowerShell, and give signtool arguments that start with the word sign.

# bach winget

> bach winget writes the three manifest files that list your setup file in the Windows Package Manager, ready for a pull request to winget-pkgs.

`bach winget` writes the files needed to list a setup file in winget. Walkthrough: [Package managers](/docs/guides/winget.md).

```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
bach winget dist/Hello-Setup-1.4.0.exe --url https://example.com/Hello-Setup-1.4.0.exe --license MIT
```

| Argument or flag | Meaning |
| - | - |
| `FILE` | The full setup file |
| `--url URL` | Required. Its `https` download address. |
| `--license NAME` | License, such as `MIT`. Default `Proprietary`, with a warning. |
| `-o`, `--out DIR` | Default `winget/<id>/<version>` next to the setup file |

```text theme={"theme":{"light":"github-light","dark":"github-dark"}}
Wrote the winget manifests for HelloInc.Hello 1.4.0 to <folder>
Check them with `winget validate <folder>`, then open a pull request to microsoft/winget-pkgs.
```

## What the manifests say

* Package id `Publisher.AppId`, using only characters winget allows
* `InstallerType: exe`, `Scope: user` or `machine` (from `installer.scope`)
* Architecture `x64` or `arm64`, minimum OS Windows 10 1809
* Silent install with `--silent`, location with `--dir`, log with `--log`
* Upgrades by running the new installer
* `ProductCode` set to the app id, how Windows lists your app


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.