From 9a4fbfa652481bdccb1d5f387e68e9536f5cd73c Mon Sep 17 00:00:00 2001 From: Mariusz Jamro Date: Tue, 25 Oct 2022 14:04:46 +0200 Subject: [PATCH] Add import help for Klondike. --- docs/import/klondike.md | 39 +++++++++++++++++++++++++++++++++++++++ docs/vs/klondike.md | 8 ++++++++ 2 files changed, 47 insertions(+) create mode 100644 docs/import/klondike.md create mode 100644 docs/vs/klondike.md diff --git a/docs/import/klondike.md b/docs/import/klondike.md new file mode 100644 index 000000000..e05c0931a --- /dev/null +++ b/docs/import/klondike.md @@ -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 + +``` + +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 +} +``` diff --git a/docs/vs/klondike.md b/docs/vs/klondike.md new file mode 100644 index 000000000..aa5ec9e7d --- /dev/null +++ b/docs/vs/klondike.md @@ -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