Skip to content

Commit 7ec3fc2

Browse files
committed
Add import help for Klondike.
1 parent 4a7086e commit 7ec3fc2

2 files changed

Lines changed: 47 additions & 0 deletions

File tree

docs/import/klondike.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# Import packages from a Klondike
2+
3+
[Klondike](https://github.com/chriseldredge/Klondike) is an Ember front-end that builds on NuGet.Lucene for private NuGet package hosting.
4+
5+
!!! info
6+
Please refer to the [BaGet vs Klondike](../vs/klondike.md) page for reasons to upgrade to BaGet.
7+
8+
## Steps
9+
10+
Locate the source directory where Klondike internally stores the packages. You can find the actual path in the `Settings.config` file under `packagesPath` entry. For example:
11+
12+
```xml
13+
<add key="packagesPath" value="C:\Klondike\Packages" />
14+
```
15+
16+
Make sure that you've installed [nuget.exe](https://www.nuget.org/downloads). In PowerShell, run:
17+
18+
```ps1
19+
$source = "C:\Klondike\Packages"
20+
$destination = "http://localhost:5000/v3/index.json"
21+
```
22+
23+
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):
24+
25+
```ps1
26+
& nuget.exe setapikey "MY-API-KEY" -Source $destination
27+
```
28+
29+
Now run the following PowerShell script:
30+
31+
```ps1
32+
$packages = (Get-ChildItem -Filter *.nupkg -Recurse $source).fullname
33+
34+
foreach($path in $packages)
35+
{
36+
Write-Host "nuget.exe push -Source $destination ""$path"""
37+
& nuget.exe push -Source $destination $path
38+
}
39+
```

docs/vs/klondike.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Klondike
2+
3+
!!! warning
4+
This page is a work in progress!
5+
6+
7+
1. Klondike is no longer actively maintained
8+
2. Klondike supports only NuGet API V2

0 commit comments

Comments
 (0)