Skip to content

Commit

Permalink
Add import help for Klondike.
Browse files Browse the repository at this point in the history
  • Loading branch information
mjamro committed Oct 25, 2022
1 parent 4a7086e commit 9a4fbfa
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 0 deletions.
39 changes: 39 additions & 0 deletions docs/import/klondike.md
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
}
```
8 changes: 8 additions & 0 deletions docs/vs/klondike.md
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

0 comments on commit 9a4fbfa

Please sign in to comment.