Short recipes for common tasks. host is your server (default http://localhost:6060); {name} is a repository name. Details are in the linked pages.
| Goal | Steps |
|---|---|
| Push a NuGet package | Create a key on /account/apikeys, then dotnet nuget push -s http://host/v3/index.json -k <key> pkg.nupkg |
| Push symbols | Same command with a .snupkg; symbol location http://host/api/download/symbols |
| Use the server as a source | Add http://host/v3/index.json to NuGet.config or Visual Studio |
| Push from the browser | /upload: stage, preview the metadata, confirm |
| Use V2 clients | Source http://host/api/v2 (Feeds:EnableV2, on by default) |
/admin/repositories.http://host/r/{name}/v3/index.json (Docker: host/v2/{name}/{image}).See Repositories.
/admin/repositories/{name} and switch off Anonymous read (or edit the permission targets).dotnet nuget add source http://host/r/{name}/v3/index.json -n {name} -u <user> -p <key> --store-password-in-clear-text --allow-insecure-connections (the last flag only for plain http).See Access control.
/admin/repositories: create a remote repository with the upstream URL (add credentials if needed).npm config set registry http://host/r/{name}/npm/
npm login
npm publish
Or a scope only: @acme:registry=http://host/r/{name}/npm/ in .npmrc; auth via //host/r/{name}/npm/:_authToken=<API key>. See npm registry.
Create a Maven repository, put its API key in settings.xml and the repository in the POM; the package page generates both snippets. mvn deploy publishes. See Maven repositories.
docker login host # user name + API key as password
docker push host/{name}/myimage:1.0
docker pull host/{name}/myimage:1.0
Plain http works only for localhost or hosts in insecure-registries. See Docker registry.
/admin/retention: new policy for a repository or project (keep the newest N, older than days, unused, cache size, untagged Docker manifests).See Retention.
Set Scanning:* (off by default), then choose a policy per repository or project: warn, or refuse downloads and deploys. Findings show on package pages. See Vulnerability scanning.
From nuget.org, from NuGet.Server, from a local feed. Download counts: dotnet BaGet.dll import downloads.
| Case | Command |
|---|---|
| Forgot the password | dotnet BaGet.dll account reset-password <user> [--email <address>] |
| Need an administrator | dotnet BaGet.dll account promote <user> |
Both need Accounts:Enabled.
/admin/settings (administrators): changes apply live unless marked restart-required, and are saved to appsettings.Overrides.json. See Configuration.
Settings page: change Database:Type / Database:ConnectionString, keep Copy all data ticked, save. The server is read-only during the copy and stays so until you restart it. See Moving to another database.
Create an administrator key with scope admin:api and call /api/v1 (OpenAPI at /api/v1/openapi.json, catalog at /admin/api). See Administration REST API.
Needs a shared database (not SQLite), shared object storage, Redis and Ha:Enabled=true; probe /health/ready. See High availability.
Run Jaeger and set Telemetry__Otlp__Endpoint=http://jaeger:4317; see the Docker page’s Jaeger example: Docker.