How the 'new' command workflow works
mainThe new command follows a structured wizard flow to ensure manifest accuracy:
- Downloading the installer: The tool downloads the provided installer and attempts to extract metadata to pre-populate fields like
PackageIdentifier. - Auto-filling manifest fields: If the installer URL is a GitHub release, the tool can automatically populate several fields using a GitHub token (
--token). Fields include:License,ShortDescription,ReleaseDate,ReleaseNotesUrl,PackageUrl,PublisherUrl,PublisherSupportUrl,Tags, andDocumentations(if a wiki exists).
- Reviewing and Editing: You will be prompted to accept or modify remaining required fields. You can use
DELandARROWkeys to edit. After all fields are filled, the tool displays a summary for review. If you need to change something, you can go back through the fields. - Saving: Once you confirm the details, the manifest is saved to your specified
--outdirectory. - Submission: The tool offers to automatically submit a Pull Request (PR) to the
microsoft/winget-pkgsrepository. If you haven't provided a--token, you will be prompted to authenticate via a web page.