BEFORE YOU START
Command options
| Arguments | Description |
|---|---|
--nightly
| installs the latest nightly version of SurrealDB |
--alpha
| installs the latest alpha version of SurrealDB |
--beta
| installs the latest beta version of SurrealDB |
--version
| installs a specific version of SurrealDB |
--dry-run
| Does not actually replace the currently installed version of SurrealDB. |
Example usage
This example shows how you can use the upgrade command to upgrade to the latest version of SurrealDB.
Global install
If SurrealDB is installed globally on your system, you might need to run the upgrade command with elevated permissions, such as sudo on Unix-based systems or with administrator privileges in Windows.
Install a specific version
Use the --version flag to upgrade to a specific version of SurrealDB.
For a list of available versions and their release notes, see the releases page.
Install the alpha release
Use the --alpha flag to upgrade to the latest alpha version of SurrealDB.
Install the beta release
Use the --beta flag to upgrade to the latest beta version of SurrealDB.
Install the nightly release
Use the --nightly flag to upgrade to the latest nightly version of SurrealDB.
Command help
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 upgrade command.
The output of the above command: