-
Notifications
You must be signed in to change notification settings - Fork 635
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
47 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# Import packages from a Klondike | ||
|
||
[Klondike](https://github.com/chriseldredge/Klondike) is an Ember front-end that builds on NuGet.Lucene for private NuGet package hosting. | ||
|
||
!!! info | ||
Please refer to the [BaGet vs local feeds](../vs/klondike.md) page for reasons to upgrade to BaGet. | ||
|
||
## Steps | ||
|
||
Locate the source directory where Klondike stores packages. You can find the actual folder in the `Settings.config` file under `packagesPath` entry. For example: | ||
|
||
```xml | ||
<add key="packagesPath" value="C:\Klondike\Packages" /> | ||
``` | ||
|
||
Make sure that you've installed [nuget.exe](https://www.nuget.org/downloads). In PowerShell, run: | ||
|
||
```ps1 | ||
$source = "C:\Klondike\Packages" | ||
$destination = "http://localhost:5000/v3/index.json" | ||
``` | ||
|
||
If you've [configured BaGet to require an API Key](https://loic-sharma.github.io/BaGet/configuration/#requiring-an-api-key), set it using [the `setapikey` command](https://docs.microsoft.com/en-us/nuget/reference/cli-reference/cli-ref-setapikey): | ||
|
||
```ps1 | ||
& nuget.exe setapikey "MY-API-KEY" -Source $destination | ||
``` | ||
|
||
Now run the following PowerShell script: | ||
|
||
```ps1 | ||
$packages = (Get-ChildItem -Filter *.nupkg -Recurse $source).fullname | ||
foreach($path in $packages) | ||
{ | ||
Write-Host "nuget.exe push -Source $destination ""$path""" | ||
& nuget.exe push -Source $destination $path | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# Klondike | ||
|
||
!!! warning | ||
This page is a work in progress! | ||
|
||
|
||
1. Klondike is no longer actively maintained | ||
2. Klondike supports only NuGet API V2 |