Skip to main content

Server installation

Install a standalone CamusDB node to run SQL locally or alongside your application. Choose the package that fits your environment; all three options run the same server and expose the same SQL APIs.

MethodRequirementsChoose it when
NuGet tool.NET 10 SDK to install the toolYou already use .NET and want a global camusdb command.
HomebrewHomebrew on macOS or LinuxYou want a native command or background service with its runtime included.
DockerA running Docker engineYou want a container with data kept in a named volume.

Install and start​

Choose one method. The examples start a standalone node with REST on port 5095 and gRPC on 5096. Stop an existing node before starting another on the same ports.

Install the .NET 10 SDK, then install the server from NuGet:

dotnet tool install --global CamusDB.Server
camusdb

With no configuration file, the node starts on built-in defaults and stores data in your user data directory. To keep settings of your own:

camusdb init

This creates a starter configuration and the default data directory. Edit the file and restart camusdb; see configuration and data for the paths. Stop a foreground node with Ctrl+C.

To update, stop the node, update the tool, and start it again:

dotnet tool update --global CamusDB.Server
camusdb

Check the node​

From another terminal, check that the standalone node is responding:

curl --fail http://localhost:5095/health

To run SQL, connect with camus-cli or the Web Console. They are separate installations. Follow the tutorial to create a database and run your first queries. A database must be created explicitly before use.

Configuration and data​

These are the default locations; explicit configuration and environment settings can override them:

InstallationConfigurationData
Foreground command on macOS/Linux~/.camusdb/config.yml, created by camusdb init$XDG_DATA_HOME/camusdb, or ~/.local/share/camusdb when unset
NuGet tool on Windows%APPDATA%\camusdb\config.yml, created by camusdb init%LOCALAPPDATA%\camusdb
Homebrew service$(brew --prefix)/var/camusdb/config.yml$(brew --prefix)/var/camusdb/data
Docker command aboveBuilt-in/image settings unless overridden/data, backed by the camus-data volume

The Homebrew service writes its log to $(brew --prefix)/var/log/camusdb.log. A foreground process or Docker container writes to its console; use docker logs camusdb while the container exists.

For installed commands, CAMUS_HOME relocates the user configuration to $CAMUS_HOME/config.yml and the default data directory to $CAMUS_HOME/data. --config <path> selects a configuration file explicitly. See configuration discovery for precedence and the settings reference for ports, authentication, TLS, and storage options.

Run a cluster​

The commands above run one standalone node. For a local cluster, start with the Aspire sample, or follow cluster mode for manual setup. For Kubernetes, use the Kubernetes Operator.