---
title: "Push-PackageFile"
---
Uploads a universal package file to a package source.
ProGet::Push-PackageFile(
FilePath: <text>,
[To: <text>],
[Feed: <text>],
[EndpointUrl: <text>],
[UserName: <text>],
[Password: <text>],
[ApiKey: <text>]
);
Name | Format | Script Usage | Usage Notes |
---|---|---|---|
☆ Package file path (default) | text | FilePath | This argument is required. |
Package source | text | To | |
Feed name | text | Feed | Not specifying will "Use Feed from package source". |
API endpoint URL | text | EndpointUrl | Not specifying will "Use URL from package source". |
ProGet user name | text | UserName | The name of a user in ProGet that can access this feed. Not specifying will "Use user name from package source". |
ProGet password | text | Password | The password of a user in ProGet that can access this feed. Not specifying will "Use password from package source". |
ProGet API Key | text | ApiKey | An API Key that can access this feed. Not specifying will "Use API Key from package source". |
# Uploads the MyPackage.1.0.0.upack file to the InternalFeed package source
ProGet::Push-PackageFile MyPackage.1.0.0.upack
(
PackageSource: InternalFeed
);