Installation
System Requirements
| Component | Minimum | Recommended |
|---|---|---|
| CPU | 2 cores | 4+ cores |
| RAM | 2 GB | 8 GB |
| Disk | 1 GB | 20 GB SSD |
| OS | Linux, macOS, Windows (WSL2) | Ubuntu 22.04 LTS |
Install via npm
npm install -g @nexusdb/cli@latest
nexusdb --versionInstall via Docker
docker pull nexusdb/server:latest
docker run -d --name nexusdb \
-p 4200:4200 \
-v nexusdb-data:/data \
nexusdb/server:latestInstall via Homebrew (macOS)
brew tap nexusdb/tap
brew install nexusdbVerify Installation
nexusdb doctorExpected output:
✓ Node.js 20.11.0
✓ NexusDB CLI 3.2.1
✓ Storage engine: ok
✓ Network: port 4200 availableUpgrading
From 2.x to 3.x
NexusDB 3.x includes breaking changes to the query API. Run the migration tool:
nexusdb migrate --from 2.x --dry-run
nexusdb migrate --from 2.xWarning: Always backup your data before upgrading major versions. Use nexusdb backup create to create a snapshot.Patch Updates
npm update -g @nexusdb/cli