The token command of the Winget-Create tool is designed to manage cached GitHub personal access tokens used by the tool for interacting with the Windows Package Manager repo automatically.
To use the token command, you can specify whether you want to store a new GitHub token or clear any existing cached tokens. If you choose not to provide a token when storing, the tool will initiate an OAuth flow and prompt for your GitHub login credentials.
WingetCreateCLI.exe token [\<options>]
The following arguments are available:
Argument |
Description |
---|---|
-c, --clear | Required. Clear the cached GitHub token |
-s, --store | Required. Set the cached GitHub token. Can specify token to cache with --token parameter, otherwise will initiate OAuth flow. |
-t, --token | GitHub personal access token used for direct submission to the Windows Package Manager repo. If no token is provided, tool will prompt for GitHub login credentials. |