# Nightly

If you prefer developing on the bleeding edge, you can follow this tutorial to install SurrealDB Nightly. The nightly version is built and released every night at midnight.

Nightly builds include the latest features and bug fixes. They are available for macOS, Linux, and Windows via the install scripts ([Unix](https://github.com/surrealdb/install.surrealdb.com), [Windows](https://github.com/surrealdb/windows.surrealdb.com)), or through Docker using the `nightly` tag.

## Installing SurrealDB Nightly on macOS

To get started, you can use the SurrealDB [install script](https://github.com/surrealdb/install.surrealdb.com). This script securely downloads the latest version for the platform and CPU type. It attempts to install SurrealDB into the `/usr/local/bin` folder (or `C:\Program Files\SurrealDB` on Windows), falling back to a user-specified folder if necessary. The following command will attempt to install the nightly version. You can re-run this command daily to ensure you are running the latest build of SurrealDB.

```bash
curl --proto '=https' --tlsv1.2 -sSf https://install.surrealdb.com | sh -s -- --nightly
```

## Installing SurrealDB Nightly on Linux

To get started, you can use the SurrealDB [install script](https://github.com/surrealdb/install.surrealdb.com). This script securely downloads the latest version for the platform and CPU type. It attempts to install SurrealDB into the `/usr/local/bin` folder, falling back to a user-specified folder if necessary. The following command will attempt to install the nightly version. You can re-run this command daily to ensure you are running the latest build of SurrealDB.

```bash
curl --proto '=https' --tlsv1.2 -sSf https://install.surrealdb.com | sh -s -- --nightly
```

## Installing SurrealDB Nightly on Windows

To get started, you can use the SurrealDB [install script](https://github.com/surrealdb/install.surrealdb.com). This script securely downloads the latest version for the platform and CPU type. It installs SurrealDB into the `C:\Program Files\SurrealDB` folder, falling back to a user-specified folder if necessary. The following command will attempt to install the nightly version. You can re-run this command daily to ensure you are running the latest build of SurrealDB.

```bash
iex "& { $(irm https://windows.surrealdb.com) } -Nightly"
```

## Using SurrealDB Nightly with Docker

To use SurrealDB Nightly with Docker, you can use the `nightly` tag. When running the following command, the latest SurrealDB Nightly version will be pulled from Docker Hub.

```bash
docker run --rm --pull always -p 8000:8000 surrealdb/surrealdb:nightly start
```
