Skip to content

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. 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.

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