SonnetDB.Cli 1.2.0

dotnet tool install --global SonnetDB.Cli --version 1.2.0
                    
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 SonnetDB.Cli --version 1.2.0
                    
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=SonnetDB.Cli&version=1.2.0
                    
nuke :add-package SonnetDB.Cli --version 1.2.0
                    

SonnetDB.Cli

SonnetDB.Cli 是 SonnetDB 的命令行工具包,安装后命令名为 sndb

安装

dotnet tool install --global SonnetDB.Cli --version 0.1.0

示例

sndb version
sndb sql --connection "Data Source=./demo-data" --command "CREATE MEASUREMENT cpu (host TAG, value FIELD FLOAT)"
sndb sql --connection "Data Source=./demo-data" --command "SELECT count(*) FROM cpu"
sndb repl --connection "Data Source=./demo-data"

远程连接示例:

sndb sql --connection "Data Source=sonnetdb+http://127.0.0.1:5080/metrics;Token=sonnetdb-admin-token" --command "SHOW DATABASES"

完整发布产物说明见仓库根目录 docs/releases/

Product Compatible and additional computed target framework versions.
.NET 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. 
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
1.2.0 111 5/8/2026
1.1.0 97 5/6/2026
1.0.0 113 4/26/2026
0.2.1 97 5/3/2026
0.2.0 105 5/3/2026
0.1.0 100 5/3/2026