This command upgrades SurrealDB to the latest version, nightly or a specified version
BEFORE YOU START : Make sure you’ve installed SurrealDB — it should only take a second!
|installs the latest nightly version of SurrealDB
|installs the latest beta version of SurrealDB
|installs a specific version of SurrealDB
|Does not actually replace the currently installed version of SurrealDB.
This example shows how you can use the upgrade command to upgrade to the latest version of SurrealDB
If SurrealDB is installed globally on your system, you might need to run the upgrade command with elevated permissions.
sudo surreal upgrade
Use the --nightly flag to upgrade to the latest nightly version of SurrealDB.
surreal upgrade --nightly
Install specific version
--version flag to upgrade to the a specific version of SurrealDB.
surreal upgrade --version v1.0.0-beta.10
To see the help information and usage instructions, in a terminal run the
surreal upgrade --help command without any further arguments. This command gives general information on the arguments, inputs, and additional options for the
surreal upgrade --help
Upgrade to the latest stable version
surreal upgrade [OPTIONS]
[PATTERN] Glob pattern for the files to validate [default: **/* .surql]
--nightly Install the latest nightly version
--beta Install the latest beta version
--version <VERSION> Install a specific version
--dry-run Don't actually replace the executable
-h, --help Print help