Skip to content

Latest commit

 

History

History
49 lines (31 loc) · 1.46 KB

README.md

File metadata and controls

49 lines (31 loc) · 1.46 KB

NuSave 📦 - Cache NuGet package for offline use ✈️

nusave gives you the ability to cache NuGet packages from nuget.org or any other source with full dependency tree to your computer for offline use.

Supported platforms: Windows, macOS and Linux.

Written in .NET 5.

Usage

Check nusave --help for usage options.

Cache a single NuGet package with dependencies

nusave cache package "[email protected]" --targetFrameworks "[email protected],[email protected]" --cacheDir "C:\path\to\my-local-feed"

The command above will bring all packages that Newtonsoft.Json depend on, and if there are any duplicates, they will be ignored. nusave checks for existing .nupkg files and hierarchical package folders.

The combination of nusave and NuGet.Server gives you the ability to download all packages needed on your laptop or workstation for offline use.

Cache multiple NuGet packages from a .csproj file

nusave cache csproj "C:\path\to\project.csproj" --cacheDir "C:\path\to\my-local-feed"

Cache multiple NuGet packages from an .sln file

nusave cache sln "C:\path\to\solution.sln" --cacheDir "C:\path\to\my-local-feed"

Install

Download the latest release for your platform: https://github.com/eli-ba/nusave/releases

Add the binary to the path. Enjoy! 🎉

Build

Build nusave.sln .

Don't forget to add the location of nusave.exe or nusave to the $PATH.

.NET 5 is needed to build and run nusave.