forked from loic-sharma/BaGet
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve documentation (loic-sharma#550)
- Loading branch information
1 parent
5aeef27
commit 68e99bf
Showing
18 changed files
with
142 additions
and
74 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,4 @@ | ||
# Debugging BaGet | ||
|
||
!!! warning | ||
This page is a work in progress! |
File renamed without changes.
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
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,36 @@ | ||
# Import packages from a local feed | ||
|
||
[Local feeds](https://docs.microsoft.com/en-us/nuget/hosting-packages/local-feeds) let you use a folder as a NuGet package source. | ||
|
||
!!! info | ||
Please refer to the [BaGet vs local feeds](../vs/local-feeds.md) page for reasons to upgrade to BaGet. | ||
|
||
## Steps | ||
|
||
Make sure that you've installed [nuget.exe](https://www.nuget.org/downloads). In PowerShell, run: | ||
|
||
```ps1 | ||
$source = "C:\path\to\local\feed" | ||
$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 = nuget list -AllVersions -Source $source | ||
$packages | % { | ||
$id, $version = $_ -Split " " | ||
$nupkg = $id + "." + $version + ".nupkg" | ||
$path = [IO.Path]::Combine($source, $id, $version, $nupkg) | ||
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,30 @@ | ||
# Import nuget.org packages | ||
|
||
!!! warning | ||
This page is a work in progress! | ||
|
||
## Mirroring | ||
|
||
You can configure BaGet to mirror nuget.org. For example, say you install BaGet, enable mirroring, and try to install the package | ||
[`Newtonsoft.Json`](https://www.nuget.org/packages/Newtonsoft.Json/). BaGet doesn't have this package yet, so it will | ||
automatically index this package from nuget.org. This is also known as "read-through caching". | ||
|
||
For more information, please see [Enable read-through caching](../configuration#enable-read-through-caching). | ||
|
||
## Importing package downloads from nuget.org | ||
|
||
You can import package downloads from nuget.org: | ||
|
||
1. Navigate to `.\BaGet\src\BaGet` | ||
2. Run: | ||
|
||
``` | ||
dotnet run -- import-downloads | ||
``` | ||
|
||
## Importing all nuget.org packages | ||
|
||
* TODO Check-in code | ||
* Explain scaling | ||
* Rebuild indexes at end | ||
* Importing downloads from nuget.org |
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
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
File renamed without changes.
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
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
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
File renamed without changes.
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
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
This file was deleted.
Oops, something went wrong.
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,16 @@ | ||
# Local Feeds | ||
|
||
!!! warning | ||
This page is a work in progress! | ||
|
||
[Local feeds](https://docs.microsoft.com/en-us/nuget/hosting-packages/local-feeds), also known as "folder feeds", let you | ||
use a folder as a NuGet package source. You can access these packages using a network share. | ||
|
||
# BaGet vs local feeds | ||
|
||
Local feeds are very simple and are lack features like: | ||
|
||
1. Search functionality | ||
1. A user interface to browse your packages | ||
1. Authentication for package uploads | ||
1. Cloud storage for large feeds |
Oops, something went wrong.