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
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
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
nuke :add-package SonnetDB.Cli --version 1.2.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
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 | Versions 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.