TheDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/microsoft/winget-cli/llms.txt
Use this file to discover all available pages before exploring further.
validate command validates package manifest files for syntax, schema compliance, and logical consistency.
Syntax
Required Arguments
Path to manifest file or directory containing manifest files
Options
Manifest path (alternative to positional argument)
Treat warnings as non-fatal (validation still succeeds)
Examples
Validate single manifest:Validation Checks
The validate command checks:- YAML Syntax - Valid YAML format
- Schema Compliance - Matches WinGet manifest schema
- Required Fields - All mandatory fields present
- Data Types - Correct types for all fields
- Field Formats - URLs, versions, etc. are well-formed
- Logical Consistency - Dependencies, installers, etc. are valid
- Hash Validation - Installer hashes match if provided
Output Format
Valid Manifest
Invalid Manifest
Warnings
Manifest Structure
Valid WinGet manifests follow this structure:Multi-File Manifests
For multi-file manifests (version, installer, locale, defaultLocale):Common Errors
Missing Required Field
Invalid Format
Hash Mismatch
Exit Codes
0- Manifest is valid0x8A15003E- Manifest syntax error0x8A15003F- Manifest validation error0x8A150040- Manifest has warnings (without —ignore-warnings)
The validate command is primarily used by manifest contributors to verify manifests before submitting to the WinGet repository.
Manifest validation includes downloading and checking installer hashes, which may take time for large installers.