π¦ ClawHub
SurrealDB 3
by @24601
Expert SurrealDB 3 architect and developer skill. SurrealQL mastery, multi-model data modeling (document, graph, vector, time-series, geospatial), schema des...
π‘ Examples
> Credential warning: Examples below use root/root for **local development
> only**. Never use default credentials against production or shared instances.
> Create scoped, least-privilege users for non-local environments.
# Start SurrealDB in-memory for LOCAL DEVELOPMENT ONLY
surreal start memory --user root --pass root --bind 127.0.0.1:8000Start with persistent RocksDB storage (local dev)
surreal start rocksdb://data/mydb.db --user root --pass rootStart with SurrealKV (time-travel queries supported, local dev)
surreal start surrealkv://data/mydb --user root --pass rootConnect via CLI REPL (local dev)
surreal sql --endpoint http://localhost:8000 --user root --pass root --ns test --db testImport a SurrealQL file
surreal import --endpoint http://localhost:8000 --user root --pass root --ns test --db test schema.surqlExport the database
surreal export --endpoint http://localhost:8000 --user root --pass root --ns test --db test backup.surqlCheck version
surreal versionRun the skill health check
uv run {baseDir}/scripts/doctor.py
βοΈ Configuration
brew install surrealdb/tap/surreal (macOS) or see install docsbrew install uv (macOS) or pip install uv or see uv docsOptional:
docker run surrealdb/surrealdb:v3)> Security note: This skill documents package-manager and container installs > only. Prefer auditable installs through Homebrew, apt/dnf, Cargo, npm, or > Docker rather than remote one-line shell installers.
TERMINAL
clawhub install surrealdb