Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

surrealdb-cli

БесплатноБез исполняемых скриптовНе проверен

Use the `surreal` command-line binary to run a SurrealDB server (in-memory, RocksDB, SurrealKV, or TiKV), open an interactive or piped SQL REPL, import and…

surrealdbот surrealdb★ 29 звёзд на GitHub

Об этом скилле

SurrealDB CLI

A skill for driving the surreal command-line binary — SurrealDB's all-in-one launcher for running a server, querying it, moving data in and out, and installing multiple database versions side by side.

This skill covers operating the surreal binary itself. To write the SurrealQL that you run with it, use the surrealql skill; for declarative schema migrations and type generation, use the surrealkit skill.

When to use this skill

Reference these guidelines when:

  • Starting a SurrealDB server, locally or in a container (surreal db start)
  • Opening the SQL shell or piping queries from a file (surreal db sql)
  • Importing or exporting a database for backups, seeding, or migration (surreal db import / surreal db export)
  • Gating scripts or CI on server availability (surreal db is-ready)
  • Installing, switching, pinning or running a specific database version (surreal install, surreal use, surreal +4.0.1 db …)
  • Installing or using the cloud, memory, kit, lsp, ent or ext components (surreal install cloud, surreal memory --help)
  • Upgrading the CLI or database, or repairing on-disk storage after an upgrade (surreal upgrade / surreal db fix)
  • Importing or exporting SurrealML models (surreal db ml, db 3.x only)

Installation

Method Command
curl (macOS / Linux) curl -sSf https://install.surrealdb.com | sh
Windows (PowerShell) iwr https://windows.surrealdb.com -useb | iex
Homebrew brew install surrealdb/tap/surreal
Docker docker run --rm --pull always -p 8000:8000 surrealdb/surrealdb:latest start

Verify with surreal --version (launcher) and surreal list (installed components and versions). Pin a specific image tag (not latest) for production. See the install docs for the current set of methods.

Components & versions

surreal is a launcher (v1.x) that dispatches to separately installed components: db (the database), ent, memory, cloud, ext, kit, lsp. Server commands live under db: surreal db start, not surreal start. The bare forms (surreal start, surreal sql, surreal version, …) still run but are deprecated and print a warning.

Several db versions can be installed at once. Prefix any command with +VERSION to run that version for just that command:

surreal list                          # components, default version, installed versions
surreal install [email protected]              # install beside existing versions
surreal +4.0.1 db start --user root --pass root memory   # run 4.0.1 once
surreal +3.3.5 db export --ns main --db main > dump.surql
surreal use [email protected]                  # make 4.0.1 the default (no download)

+VERSION must already be installed; otherwise the CLI tells you to run surreal install db@VERSION. Use +VERSION to try a new major against a copy of your data, or to export from an old server and import into a new one. See maintenance.md for install, use, upgrade and uninstall.

The db surface differs by version — 4.x has no ml, module, upgrade or v2 subcommands. Check surreal +VERSION db --help.

Other components

Besides db, the launcher fronts these components. They are not installed by default: running one that is missing fails with an install hint (it will not download without confirmation). Install on demand, and learn each one's arguments from its own --help rather than guessing — their surface changes independently of db.

Component Purpose Install
cloud SurrealDB Cloud: organisations, instances, backups, teams surreal install cloud
memory Agent memory: remember, recall, reflect surreal install memory
kit Schema migrations, seed data, typegen, tests (see the surrealkit skill) surreal install kit
lsp SurrealQL language server for editors (see the surrealql-functions skill) surreal install lsp
ent SurrealDB Enterprise, the licensed edition of the database surreal install ent
ext Build and run WebAssembly extensions surreal install ext
surreal list                    # which components are installed
surreal install cloud           # install (add -y to skip the prompt)
surreal cloud --help            # discover subcommands and flags
surreal memory --help

When a task needs one of these (managing a Cloud instance, storing or recalling agent memory), check surreal list, install the component if the user's task calls for it, then use surreal <component> --help and surreal <component> <subcommand> --help to work out the arguments. Both cloud and memory act on remote accounts or data, so confirm destructive operations (deleting instances, forgetting memories) with the user first.

Command map

Command Purpose Reference
`surrea
Полный SKILL.md на GitHub

Установить surrealdb-cli в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

references/import-export.mdreferences/maintenance.mdreferences/sql.mdreferences/start.md

FAQ

Что делает скилл surrealdb-cli?

Use the `surreal` command-line binary to run a SurrealDB server (in-memory, RocksDB, SurrealKV, or TiKV), open an interactive or piped SQL REPL, import and export databases, check server readiness, install, switch and pin multiple database versions (`surreal +4.0.1 db …`), repair storage, and manage SurrealML models. Use this skill whenever users run, connect to, back up, restore, or operate SurrealDB from the terminal. Triggers: surreal db start, surreal db sql, surreal db import, surreal db export, surreal install, surreal cloud, surreal memory, surreal use, surreal list, surreal upgrade, surreal +VERSION, surreal fix, surreal ml, SurrealDB CLI, surreal server.

Как установить скилл surrealdb-cli?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл surrealdb-cli запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить surrealdb-cli с