Quick Start
Get started with NugetHosting in under 5 minutes
Introduction
NugetHosting provides secure, fast, and affordable hosting for your private NuGet packages and Docker container images.
This guide will walk you through the basic setup process to get your first package uploaded in just a few minutes.
💡 Tip: You can use either GitHub, Google, or email to create your account.
1. Create Your Account
First, you'll need to create a free NugetHosting account:
- Go to the registration page
- Sign up with GitHub, Google, or your email
- Verify your email if signing up with email
2. Create an API Token
API tokens are used to authenticate your package manager with NugetHosting:
- Go to Dashboard → API Tokens
- Click 'Create New Token'
- Give your token a name (e.g., 'Development')
- Copy the token immediately - you won't see it again!
⚠️ Important: Store your token securely. You won't be able to view it again after creation.
3. Configure NuGet
Add NugetHosting as a package source in your development environment:
Option A: Using dotnet CLI
# Add NugetHosting as a package source
dotnet nuget add source https://nuget.nugethosting.com/v3/index.json \
-n NugetHosting \
-u api \
-p YOUR_TOKENOption B: Using NuGet.config
Create or edit a NuGet.config file in your solution directory:
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<add key="NugetHosting" value="https://nuget.nugethosting.com/v3/index.json" />
</packageSources>
<packageSourceCredentials>
<NugetHosting>
<add key="Username" value="api" />
<add key="ClearTextPassword" value="YOUR_TOKEN" />
</NugetHosting>
</packageSourceCredentials>
</configuration>4. Push Your First Package
Now you can push packages to your private feed:
# Push a package
dotnet nuget push MyPackage.1.0.0.nupkg -s NugetHosting✅ Success: Your package is now available in your private NugetHosting feed!
Next Steps
You're all set! Here are some next steps to explore: