BaGet

User manual

Task-oriented guide to BaGet Extension: install, sign in, publish, consume, administer. Each section links to the page with the details.

1. Install and start

Where Page
Your computer On your computer
Docker Docker
Azure, AWS, Google Cloud, Alibaba Cloud Azure, AWS, Google Cloud, Aliyun
Windows behind IIS IIS proxy

2. Sign in and API keys

Task Where
Sign in, register, profile The sign-in page (registration is Accounts:AllowRegistration; with Accounts:RequireApproval an administrator must approve new accounts on /admin/users)
Create an API key (scopes, expiry, repository limit) /account/apikeys
Package owners, organizations Access control

A push needs an API key (-k): a user key, or the global ApiKey when one is set.

3. Publish and consume

Repositories have a format. default is at /; any other is at /r/{name}/. See Repositories and Package formats.

Format Publish Consume Details
NuGet dotnet nuget push -s http://localhost:6060/v3/index.json -k <key> pkg.nupkg (symbols: .snupkg) Source http://localhost:6060/v3/index.json; V2 clients http://localhost:6060/api/v2 Local install, Server API
npm npm publish npm install with the repository’s .npmrc lines npm registry
Maven mvn deploy settings.xml / POM snippets Maven repositories
Docker docker login, docker push docker pull Docker registry

Each package page shows the exact install commands for its repository. Browser upload: /upload (preview, then confirm).

4. Search, browse, inspect

5. Administer

Administrator pages live under /admin (others get 404).

Task Page
Settings, live (saved to appsettings.Overrides.json), database copy /admin/settings, Configuration
Repositories: create local, remote and virtual /admin/repositories
Users, groups, permission targets, projects, audit /admin/users, /admin/groups, /admin/permissions, /admin/projects, /admin/audit; Access control
Background operations (downloads import, catalog rebuild, Docker GC) /admin/operations
Validation and abuse queues /admin/validation, /admin/abuse
Retention policies and holds /admin/retention; Retention
Vulnerability scanning /admin/scanning; Vulnerability scanning
Replication to or from another server /admin/replication; Replication
Cluster nodes and health /admin/cluster; High availability
Scripting everything above Administration REST API (/api/v1, admin:api key)

Command line (run in the host folder):

Command Does
import downloads [-r <repo>] Imports nuget.org download counts
catalog rebuild [-r <repo>] Appends missing catalog entries
account reset-password <user> [--email <address>] Sets a generated password, switches off two-factor
account promote <user> / account demote <user> Grants or removes the administrator flag (promoting also approves a pending account)
account approve <user> Enables an account waiting for approval (Accounts:RequireApproval)

6. Operate

Topic Notes
Read-only mode While a database copy runs, writes answer 503 + Retry-After; sign-in still works
Health GET /health/live, GET /health/ready
Logs Serilog, logs/baget-.log; levels on the Settings page
Telemetry OpenTelemetry export to an OTLP endpoint, set on the Settings page
Moving packages in nuget.org, NuGet.Server, local feeds
Troubleshooting Debugging

Every capability and the page that offers it: UI coverage.