Aspire.Hosting.ClickHouse
13.4.6
Prefix Reserved
dotnet add package Aspire.Hosting.ClickHouse --version 13.4.6
NuGet\Install-Package Aspire.Hosting.ClickHouse -Version 13.4.6
<PackageReference Include="Aspire.Hosting.ClickHouse" Version="13.4.6" />
<PackageVersion Include="Aspire.Hosting.ClickHouse" Version="13.4.6" />
<PackageReference Include="Aspire.Hosting.ClickHouse" />
paket add Aspire.Hosting.ClickHouse --version 13.4.6
#r "nuget: Aspire.Hosting.ClickHouse, 13.4.6"
#:package Aspire.Hosting.ClickHouse@13.4.6
#addin nuget:?package=Aspire.Hosting.ClickHouse&version=13.4.6
#tool nuget:?package=Aspire.Hosting.ClickHouse&version=13.4.6
Aspire.Hosting.ClickHouse
ClickHouse hosting integration for Aspire. Adds ClickHouse container resources, databases, data volumes, and health checks to the Aspire app model.
Usage
In your AppHost project, add a ClickHouse server and database:
var builder = DistributedApplication.CreateBuilder(args);
var clickhouse = builder.AddClickHouse("clickhouse")
.WithDataVolume();
var db = clickhouse.AddDatabase("clickhousedb");
builder.AddProject<Projects.MyApi>("api")
.WithReference(db)
.WaitFor(db);
builder.Build().Run();
Features
- Runs
clickhouse/clickhouse-serveras a container resource - Automatic secure password generation
- Automatic database creation on startup via
AddDatabase() - Health checks via the ClickHouse HTTP
/pingendpoint - Data persistence with
WithDataVolume()andWithDataBindMount() - Custom credentials via Aspire parameters
Configuration
Pass custom credentials:
var password = builder.AddParameter("clickhouse-pass", secret: true);
var clickhouse = builder.AddClickHouse("clickhouse", password: password);
Related packages
Use Aspire.ClickHouse.Driver in your service projects to register ClickHouseDataSource with health checks, tracing, and configuration binding.
More information
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- Aspire.Hosting (>= 13.4.6)
-
net8.0
- Aspire.Hosting (>= 13.4.6)
-
net9.0
- Aspire.Hosting (>= 13.4.6)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Aspire.Hosting.ClickHouse:
| Package | Downloads |
|---|---|
|
Flare.Hosting.Aspire
.NET Aspire hosting integration for Flare, a self-hosted OpenTelemetry-native log dashboard. Adds the whole Flare stack (ClickHouse, Redis, OTLP ingest, query API, dashboard) to your AppHost with builder.AddFlare("flare"), wrapping Flare's published Docker Hub images. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 13.4.6 | 3,726 | 7/8/2026 |
| 13.3.5 | 10,209 | 5/25/2026 |
| 13.1.2 | 2,724 | 3/2/2026 |
| 0.0.1-test | 127 | 2/27/2026 |