CH.Toolkit.Cli 0.0.1-preview.3

This is a prerelease version of CH.Toolkit.Cli.
dotnet tool install --global CH.Toolkit.Cli --version 0.0.1-preview.3
                    
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
                    
if you are setting up this repo
dotnet tool install --local CH.Toolkit.Cli --version 0.0.1-preview.3
                    
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=CH.Toolkit.Cli&version=0.0.1-preview.3&prerelease
                    
nuke :add-package CH.Toolkit.Cli --version 0.0.1-preview.3
                    

CH.Toolkit.Cli

Command-line tool for CH.Toolkit schema migrations. This is a .NET global tool, not a library.

Installation

dotnet tool install -g CH.Toolkit.Cli

Commands

  • ch-toolkit init -- initialize a new project with a ch-toolkit.json config file
  • ch-toolkit add-migration -- diff the current database against your desired schema and generate a C# migration
  • ch-toolkit migrate -- apply all pending migrations to the database
  • ch-toolkit status -- show applied and pending migration status
  • ch-toolkit sql -- generate SQL preview from migration files (for review only)
  • ch-toolkit scaffold -- reverse-engineer schema from an existing ClickHouse database

Global Options

  • --connection -- ClickHouse connection string (overrides config file)
  • --database -- target database name (overrides config file)
  • --cluster -- cluster name for ON CLUSTER DDL (overrides config file)

Configuration

Settings are read from ch-toolkit.json in the working directory (created by init). CLI flags override config file values.

Dependencies

Introspection, Migrations + System.CommandLine, ClickHouse.Driver

Example

ch-toolkit init --connection "Host=localhost;Port=9000" --database analytics
ch-toolkit add-migration --name AddEventsTable
ch-toolkit migrate
ch-toolkit status

See the root README for full documentation.

Product 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 was computed.  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 was computed.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

Version Downloads Last Updated
0.0.1-preview.3 1,692 2/23/2026
0.0.1-preview.2 1,646 2/23/2026
0.0.1-preview.1 1,659 2/23/2026