https://github.com/bouassaba/nusave
Cache NuGet Packages for Offline Access
https://github.com/bouassaba/nusave
cache nuget offline package-manager slow-internet
Last synced: 18 days ago
JSON representation
Cache NuGet Packages for Offline Access
- Host: GitHub
- URL: https://github.com/bouassaba/nusave
- Owner: bouassaba
- License: mit
- Created: 2016-12-12T02:24:50.000Z (over 8 years ago)
- Default Branch: main
- Last Pushed: 2024-07-03T23:19:27.000Z (10 months ago)
- Last Synced: 2025-03-25T19:40:53.628Z (about 1 month ago)
- Topics: cache, nuget, offline, package-manager, slow-internet
- Language: C#
- Homepage:
- Size: 681 KB
- Stars: 80
- Watchers: 6
- Forks: 22
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# NuSave
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.

## Usage
Check `nusave --help` for usage options.
### Cache a single NuGet package with dependencies
```shell
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
```shell
nusave cache csproj "C:\path\to\project.csproj" --cacheDir "C:\path\to\my-local-feed"
```### Cache multiple NuGet packages from an `.sln` file
```shell
nusave cache sln "C:\path\to\solution.sln" --cacheDir "C:\path\to\my-local-feed"
```### Restore and build a solution using NuSave offline cache
```shell
cd C:\path\to\my-solution
dotnet restore --packages C:\path\to\my-local-feed
dotnet build --no-restore
```## 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.
## Licensing
NuSave is released under the [MIT License](LICENSE).