hash.md (1727B)
1 --- 2 title: winget hash command 3 description: Generates the SHA256 hash for an installer. 4 ms.date: 04/28/2020 5 ms.topic: article 6 ms.localizationpriority: medium 7 --- 8 9 # hash command (winget) 10 11 The **hash** command of the [winget](index.md) tool generates the SHA256 hash for an installer. This command is used if you need to create a [manifest file](../package/manifest.md) for submitting software to the **Microsoft Community Package Manifest Repository** on GitHub. In addition, the **hash** command also supports generating a SHA256 certificate hash for MSIX files. 12 13 ## Usage 14 15 `winget hash [--file] <file> [<options>]` 16 17  18 19 The **hash** sub-command can only run on a local file. To use the **hash** sub-command, download your installer to a known location. Then pass in the file path as an argument to the **hash** sub-command. 20 21 ## Arguments 22 23 The following arguments are available: 24 25 | Argument | Description | 26 |--------------|-------------| 27 | **-f, --file** | The path to the file to be hashed. | 28 29 ## Options 30 31 The following options are available: 32 33 | Option | Description | 34 |--------|-------------| 35 | **-m, --msix** | Specifies that the hash command will also create the SHA-256 SignatureSha256 for use with MSIX installers. | 36 | **-?, --help** | Gets additional help on this command. | 37 | **--wait** | Prompts the user to press any key before exiting | 38 | **--logs, --open-logs** | Open the default logs location | 39 | **--verbose, --verbose-logs** | Enables verbose logging for winget | 40 | **--disable-interactivity** | Disable interactive prompts | 41 42 43 ## Related topics 44 45 * [Use the winget tool to install and manage applications](index.md) 46 * [Submit packages to Windows Package Manager](../package/index.md)