surreal export <file>

Export an existing database as a SurrealQL script

Arguments

NameDescription
filePath to the sql file to export

Options

NameDescription
--pass, -p <pass>Database authentication password to use when connecting [default: root]
--user, -u <user>Database authentication username to use when connecting [default: root]
--conn, -c <conn>Remote database server url to connect to [default: https://cloud.surrealdb.com]
--ns <ns>
  • Required ✳
--db <db>
  • Required ✳