SurrealDB is designed to be simple to install and simple to run - using just one command from your terminal. In addition to traditional installation, SurrealDB can be installed and run with HomeBrew, Docker, or using any other container orchestration tool such as Docker Compose, Docker Swarm, Rancher, or in Kubernetes. Visit the SurrealDB install page for more information.
This repository houses the install script located at install.surrealdb.com. It installs the SurrealDB command-line tools and database server, automatically detecting the host operating platform, and cpu architecture type - then downloads the latest binary for the relevant platform.
If you prefer not using a package manager or Docker, then the easiest and preferred way to get going with SurrealDB is to run one of the following commands in your terminal.
- Download the SurrealDB installation package by executing the following command in your terminal or command prompt:
curl -O https://install.surrealdb.com/surreal-v1.3.1-windows-amd64.tar.gz
- After downloading the package, locate the downloaded ZIP folder and unzip it manually, or extract its contents using the following command:
tar -xf surreal-v1.3.1-windows-amd64.tar.gz
curl --proto '=https' --tlsv1.2 -sSf https://install.surrealdb.com | sh
curl --proto '=https' --tlsv1.2 -sSf https://install.surrealdb.com | sh -s -- --beta
curl --proto '=https' --tlsv1.2 -sSf https://install.surrealdb.com | sh -s -- --nightly