# Configuration

Settings merged from files, secrets, environment variables and the command line.

## What is **Configuration**?

**Configuration** combines settings from `appsettings.json`, environment-specific files, user secrets, environment variables and the command line, with later sources winning. Read it through `builder.Configuration`.

```csharp
var pageSize = builder.Configuration.GetValue<int>("Recipes:PageSize");
var connection = builder.Configuration.GetConnectionString("Recipes");
```

Level: Apprentice · [More ASP.NET Core terms at this level](https://www.ask-codey.com/glossary?category=aspnet-core&level=2)

Updated: September 27, 2026

Source: https://www.ask-codey.com/glossary/configuration-aspnet-core
