---
title: "Upload-Assets"
---
Uploads files to a ProGet Asset Directory.
ProGet::Upload-Assets(
[To: <text>],
[Include: <@(text)>],
[Exclude: <@(text)>],
[From: <text>],
[ProxyData: <true/false>],
[Source: <text>],
[Resource: <text>],
[EndpointUrl: <text>],
[ApiKey: <text>],
[UserName: <text>],
[Password: <text>]
);
Name | Format | Script Usage | Usage Notes |
---|---|---|---|
To | text | To | |
Include | @(text) | Include | See KB#1119 to learn more about masking syntax. |
Exclude | @(text) | Exclude | See KB#1119 to learn more about masking syntax. |
Source directory | text | From | |
Proxy data through BuildMaster/Otter | true/false | ProxyData | When true, requests will be made from the BuildMaster/Otter server instead of directly from the server in context. |
Source | text | Source | |
Secure resource (legacy) | text | Resource | |
API endpoint URL | text | EndpointUrl | |
API key | text | ApiKey | |
User name | text | UserName | |
Password | text | Password |
# upload all .zip files from the working directory to the remotedir/subdir directory on the MyAssetDirResource asset directory
ProGet::Upload-Assets
(
From: $WorkingDirectory,
To: remotedir/subdir,
Include: *.zip,
Resource: MyAssetDirResource
);