CamusDB.SqlSh
0.19.3
dotnet tool install --global CamusDB.SqlSh --version 0.19.3
dotnet new tool-manifest
dotnet tool install --local CamusDB.SqlSh --version 0.19.3
#tool dotnet:?package=CamusDB.SqlSh&version=0.19.3
nuke :add-package CamusDB.SqlSh --version 0.19.3
CamusDB SQL Shell
camus-cli is the command-line SQL shell for CamusDB:
- An interactive prompt with history, multiline editing, syntax coloring and Tab completion.
- Non-interactive runs of SQL (
-e) or.sqlfiles (-f), with table, JSON or YAML output. - A full-screen mode (
--tui) with the catalog, the editor and the results on one screen. - Workloads that create sample data and put load on a server.
For the SQL, data types, error codes and server configuration, see the CamusDB documentation.
<img width="809" height="503" alt="cli" src="https://github.com/user-attachments/assets/f50a6b6b-af7f-4212-9246-1bf5cf696f97" />
Install
Native binary
Each release has one archive for each
platform. Each archive has one native binary, camus-cli, that does not need .NET.
| Platform | Archive |
|---|---|
| Linux x64 | camus-cli-<version>-linux-x64.tar.gz |
| Linux ARM64 | camus-cli-<version>-linux-arm64.tar.gz |
| macOS on Apple silicon | camus-cli-<version>-osx-arm64.tar.gz |
| macOS on Intel | camus-cli-<version>-osx-x64.tar.gz |
| Windows x64 | camus-cli-<version>-win-x64.zip |
| Windows ARM64 | camus-cli-<version>-win-arm64.zip |
To install on Linux or macOS, download the archive for your platform. Then put camus-cli in a
folder on your PATH. This example installs version 0.19.2 on macOS on Apple silicon:
curl -fsSL https://github.com/camusdb/camussqlsh/releases/download/v0.19.2/camus-cli-0.19.2-osx-arm64.tar.gz | tar -xz
sudo mkdir -p /usr/local/bin
sudo mv camus-cli-0.19.2-osx-arm64/camus-cli /usr/local/bin/
camus-cli -v
For another platform, replace each osx-arm64 with the platform part of the archive name in the
table, for example linux-x64. For another version, replace each 0.19.2 with that version.
To install on Windows, run these commands in PowerShell. They install version 0.19.2 for Windows x64
into %LOCALAPPDATA%\Programs\camus-cli, and add that folder to the PATH of your user. They do not
need an administrator.
$ProgressPreference = 'SilentlyContinue'
Invoke-WebRequest https://github.com/camusdb/camussqlsh/releases/download/v0.19.2/camus-cli-0.19.2-win-x64.zip -OutFile camus-cli.zip -UseBasicParsing
Expand-Archive camus-cli.zip -DestinationPath . -Force
$dir = "$env:LOCALAPPDATA\Programs\camus-cli"
New-Item -ItemType Directory -Force $dir | Out-Null
Move-Item -Force camus-cli-0.19.2-win-x64\camus-cli.exe $dir
$path = [Environment]::GetEnvironmentVariable('Path', 'User')
if (($path -split ';') -notcontains $dir) { [Environment]::SetEnvironmentVariable('Path', "$path;$dir".TrimStart(';'), 'User') }
$env:Path += ";$dir"
camus-cli -v
For Windows ARM64, replace each win-x64 with win-arm64. For another version, replace each
0.19.2 with that version. The change to the PATH of your user applies to each new terminal. The
$env:Path line also adds the folder to the current terminal. The commands are for Windows
PowerShell 5.1 and PowerShell 7. The first line turns off the progress bar, because the progress bar
makes Invoke-WebRequest slow in Windows PowerShell 5.1.
- The Linux binaries need glibc 2.35 or later, for example Ubuntu 22.04 or Debian 12. They do not run on Alpine Linux, because Alpine uses musl and not glibc.
- The macOS binaries have no Apple Developer ID signature. If a web browser downloads the archive,
macOS blocks the binary. Download the archive with
curlas in the example. Or, after you extract the archive, runxattr -d com.apple.quarantine camus-cli. SHA256SUMSin each release has the SHA-256 checksum of each archive.
.NET tool
With .NET 10, you can also install the shell as a .NET tool:
dotnet tool install --global CamusDB.SqlSh # or: dotnet tool update --global CamusDB.SqlSh
Quick start
camus-cli northwind # local server, gRPC then REST
camus-cli northwind -u app # with authentication
camus-cli -c "Endpoint=https://db.example.com:5095;Database=northwind"
camus-cli northwind -e "select * from users" --format json
camus-cli northwind -f schema.sql
camus-cli northwind --tui
Documentation
| Document | Contents |
|---|---|
| Connecting | Connection strings, transports, authentication, plaintext endpoints. |
| Command line | All options and environment variables. |
| Interactive shell | Shell commands, use, transactions, prepared statements, keys, completion, history. |
| Scripting | -e, -f and source. |
| Output | Tables, \G, JSON and YAML, \export, EXPLAIN plans. |
| Full-screen mode | --tui panes and keys. |
| Backups | The backup commands. |
| Workloads | camus-cli workload. |
| Troubleshooting | Common problems and terminal detection. |
| Development | Build, test, pack and release. |
License
MIT.
| 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. |
This package has no dependencies.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.19.3 | 48 | 12/4/2026 |
| 0.19.2 | 108 | 12/1/2026 |
| 0.19.1 | 112 | 11/29/2026 |
| 0.19.0 | 115 | 11/22/2026 |
| 0.18.4 | 108 | 11/18/2026 |
| 0.18.3 | 116 | 11/15/2026 |
| 0.18.2 | 121 | 11/14/2026 |
| 0.18.1 | 112 | 11/10/2026 |
| 0.18.0 | 114 | 11/9/2026 |
| 0.17.2 | 108 | 11/8/2026 |
| 0.17.1 | 107 | 11/8/2026 |
| 0.17.0 | 126 | 11/2/2026 |
| 0.16.3 | 130 | 10/29/2026 |
| 0.16.2 | 144 | 10/27/2026 |
| 0.16.1 | 118 | 10/26/2026 |
| 0.16.0 | 132 | 10/19/2026 |
| 0.15.2 | 131 | 10/14/2026 |
| 0.15.1 | 117 | 10/14/2026 |
| 0.15.0 | 122 | 10/13/2026 |
| 0.14.6 | 122 | 10/11/2026 |