All apps/SurrealDB

SurrealDB

surreal

Multi-model database; the surreal CLI starts the server and imports, exports and queries data.

Runs as surreal|macOS, Linux, Windows

Command form

ai-draft · 2 tasks · 12 fields

Export or import a database. Server start, backup and REPL are not in this form.

Opens the form; the finished command lands at your prompt, unrun
otty gui surreal

surreal export

Export database as SurrealQL
Export database as SurrealQLExample values, fixed in this page — nothing here reaches a terminal
Basic
SurrealQL file*
file
Server URL
url
Namespace*
string
Database*
string
Username
string
Password
string
TasksEach one presets the form for one job
export
fileconnuserpassnsdb
ParametersOnly these flags are editable in the form
SurrealQL file
path · positional 0
Server URL
url
--conn-c
Username
string
--user-u
Password
Passed on the command line, so visible in shell history.
string
--pass-p
Namespace
string
--ns
Database
string
--db

surreal import

Import SurrealQL script
Import SurrealQL scriptExample values, fixed in this page — nothing here reaches a terminal
Basic
SurrealQL file*
file
Server URL
url
Namespace*
string
Database*
string
Username
string
Password
string
TasksEach one presets the form for one job
import
fileconnuserpassnsdb
ParametersOnly these flags are editable in the form
SurrealQL file
path · positional 0
Server URL
url
--conn-c
Username
string
--user-u
Password
Passed on the command line, so visible in shell history.
string
--pass-p
Namespace
string
--ns
Database
string
--db
SourcesEvery flag above is checked against these
fig
completion

github.com

fig
completion

github.com

fig
completion

github.com

Before it fills your prompt, Otty checks the installed surreal against its version. A form that does not match your version is not offered.