WINGET source add

Add a new source.

Syntax
      WINGET source add [-n, --name] \name [-a] \url [[-t] \type]  \options

Key
   -a,--arg \url   The URL or UNC of the source.

   -n,--name       The name to identify the source by.

   -t,--type       The type of source.

   --accept-source-agreements  Used to accept the source license agreement, and avoid the prompt.

   --disable-interactivity     Disable interactive prompts.

   --explicit 

   --logs,--open-logs         Open the default logs location.

   --header            Optional Windows-Package-Manager REST source HTTP header.

   --proxy         Set a proxy to use for this execution.
   --no-proxy      Disable the use of proxy for this execution.

   --nowarn,--ignore-warnings    Suppresses warning outputs.

   --trust-level                 Trust level of the source (none or trusted).

   --verbose, --verbose-logs     Used to override the logging setting and create a verbose log.

   --wait        Prompt the user to press any key before exiting.

   -?, --help    Get additional help on this command.

--name and name are required.

Because the add and remove and reset commands change user access, they require administrator privileges.

The add subcommand supports the optional type parameter, which tells the client what type of repository it is connecting to.
The following types are supported.

Individual Sources may request that the user agree to terms before accessing the repository. Before adding or using the repository, the user must agree to the terms presented.

Examples

Add the Microsoft.Rest source:

C:\> WINGET source add -n Microsoft.Rest

“The sun shone, having no alternative, on the nothing new” ~ Samuel Beckett

Related commands

WINGET - Discover, install, upgrade, remove and configure applications on Windows computers.
MSIEXEC - Microsoft Windows Installer.
WUAUCLT - Windows Update.


 
Copyright © 1999-2026 SS64.com
Some rights reserved