BaGet

Run BaGet Extension on your Computer

Run BaGet Extension

  1. Install the .NET 10 ASP.NET Core Runtime (or the SDK)
  2. Get BaGet Extension: download the BaGet workflow artifact of a release run of this repository, or publish it with dotnet publish src/BaGet -c Release -o artifacts -p:GeneratePackageOnBuild=false, and extract it
  3. Start the service with dotnet BaGet.dll
  4. Browse http://localhost:6060/ in your browser

!!! info On a server with no users, the first start creates the administrator Admin / Admin1234! (Accounts:CreateDefaultAdministrator); change that password at once. See Default administrator.

!!! info The port comes from Kestrel:Endpoints in appsettings.json, which takes precedence over --urls. Change it there, or override it with the Kestrel__Endpoints__Http__Url environment variable (for example http://localhost:8080).

Configure BaGet Extension

You can modify BaGet Extension’s configurations by editing the appsettings.json file. Database migrations run at startup (RunMigrationsAtStartup, on by default). For the full list of configurations, please refer to BaGet Extension’s configuration guide.

Publish packages

Publish your first package with:

dotnet nuget push -s http://localhost:6060/v3/index.json -k <your API key> package.1.0.0.nupkg

Publish your first symbol package with:

dotnet nuget push -s http://localhost:6060/v3/index.json -k <your API key> symbol.package.1.0.0.snupkg

!!! warning With accounts on (the default) and an empty ApiKey, a push without a key is refused with 401. Pass either a user API key (created on /account/apikeys) or a non-empty global ApiKey, with -k <key>. See also Require an API key.

Restore packages

You can restore packages by using the following package source:

http://localhost:6060/v3/index.json

Some helpful guides:

Symbol server

You can load symbols by using the following symbol location:

http://localhost:6060/api/download/symbols

For Visual Studio, please refer to the Configure Debugging guide.