Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Adds copy to the nuget command line (v1.4 last known working version)

branch: master
ReadMe.md

NuGet Copy Extension

This adds copy to the nuget.exe command line.

nuget.exe copy packageId [-Version version] [-Source sourceFeed] [-Destination destinationPathOrFeed] [-ApiKey apiKey]

This will also copy all dependent packages.

Install

To use this package, please install NuGet Extend first:

nuget install /ExcludeVersion /OutputDir %LocalAppData%\NuGet\Commands AddConsoleExtension

Then to install nuget copy, run the following command:

nuget addExtension nuget.copy.extension

Parameters

PackageId

Name of package in source feed to copy to destination feed.

Version (optional)

The version of the package to copy.
Defaults to the latest version available.

Source (optional)

Source (directory, share or remote url feed) the package comes from.
Defaults to official nuget feed.

Destination (optional, highly recommended)

Location (directory, share or remote url feed) that the package will be copied to.
Defaults to local directory.

ApiKey (optional)

The ApiKey if not already set (or just if you want to)
Defaults to the one you have set or throws an error if you do not have one set and do not pass this parameter.

Examples

nuget copy castle.windsor

nuget copy castle.windsor -destination http://nuget.mycompany.com/nuget

nuget copy castle.windsor -destination C:\files

nuget copy castle.windsor -destination \\companyshare\nuget

Something went wrong with that request. Please try again.