🔗 Connect to Your Winget Repository via REST
Follow these steps to connect any Windows Client to your Winget-Repo Cloud instance via REST. The pre-indexed source should be deactivated in the settings to function.
-
Open Command Prompt as Administrator 🖥️
On the client that needs to connect to the Winget-Repo Cloud, open a Command Prompt (CMD) with administrator rights. -
Add the Winget-Repo Source ➕
In the Command Prompt, execute the following command:bash winget source add -n Winget-Repo -t "Microsoft.Rest" -a https://cloud.winget-repo.io/cloud/api/<your_tenant_hostname>/ -
Client authentication 🔒
If client authentication is enabled on the server, include the following parameter:--header "{'Token': '{ CLIENT_AUTH_TOKEN }'}"
Replace {CLIENT_AUTH_TOKEN} with the client token obtained from Client Management on the server.
Note: The token must be included in every client request.
- Confirmation ✅
If the setup is successful, you should see the following message:Source is being added: Winget-Repo -> https://cloud.winget-repo.io/cloud/api/<your_tenant_hostname>/ Done
🔗 Connect to Your Winget Repository via the pre-indexed Source
Follow these steps to connect any Windows Client to your Winget-Repo Cloud instance via the pre-indexed source. The pre-indexed source should be activated in the settings to function.
-
Open Command Prompt as Administrator 🖥️
On the client that needs to connect to the Winget-Repo server, open a Command Prompt (CMD) with administrator rights. -
Add the Winget-Repo Source ➕
In the Command Prompt, execute the following command:bash winget source add Winget-Repo_Indexed --arg https://cloud.winget-repo.io/cloud/api/<your_tenant_hostname>/indexedReplace{URL of the server}with the actual URL of your Winget-Repo server. -
Client authentication 🔒
Client authentication is not available for the pre-indexed source. Make sure you limit the access via the IP-Restriction setting. -
Confirmation ✅
If the setup is successful, you should see the following message:Source is being added: Winget-Repo -> https://cloud.winget-repo.io/cloud/api/<your_tenant_hostname>/indexed Done
After completing these steps, your Winget-Repo instance should be ready to serve software and updates to clients!🎉