Internet Explorer is no longer supported. Many things will still work, but your experience will be degraded and some things won't function. Please use a modern browser such as Edge, Chrome, or Firefox.

Install-Package

Installs a universal package to the specified location using a Package Source.

Script usage:

ProGet::Install-Package(
	[PackageSource: <text>],
	Name: <text>,
	[Version: <text>],
	[To: <text>],
	[ClearTarget: <true/false>],
	[LocalRegistry: <integer>],
	[LocalCache: <true/false>],
	[DirectDownload: <true/false>],
	[Feed: <text>],
	[EndpointUrl: <text>],
	[UserName: <text>],
	[Password: <text>],
	[ApiKey: <text>]
);

Arguments:

NameFormatScript UsageUsage Notes
Package source
text
PackageSource
Value note: "Infer from package name".
Package name
text
Name
This argument is required.
Package version
text
Version
Default value is "latest".
Target directory
text
To
Value note: "$WorkingDirectory".
Clear target directory
true/false
ClearTarget
Use Local Registry
integer
LocalRegistry
Default value is "Machine".
LocalCache
true/false
LocalCache
Cache Package. Default value is "False".
Direct download
true/false
DirectDownload
Set this to value to false if your remote server doesn't have direct access to the ProGet feed. Default value is "True".
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".

Example:

ProGet::Install-Package
(
    From: MyPackageSource,
    Name: MyAppPackage,
    Version: 3.4.2,
    To: C:\MyApps\MyApp
);