Files
plainleaf/website/Install/Binary.md
T
2026-05-22 17:05:05 +02:00

74 lines
2.7 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#getting-started
SilverBullet is distributed as a single server binary available for the following platforms:
* macOS (Intel and Apple Silicon) (platform name “darwin”)
* Linux (x86_64 and arm64) (note that this will run on Raspberry Pi as well, but requires a 64-bit Linux distribution)
* Windows (64-bit)
* FreeBSD (x86_64)
> **note** Which file should I download?
> The [releases page](https://github.com/silverbulletmd/silverbullet/releases) lists two families of zip files:
> * `silverbullet-server-<os>-<arch>.zip`: **this is what you want**, the actual SilverBullet server.
> * `sb-<os>-<arch>.zip` — the optional [[CLI]] tool (`sb`) for scripting against a _running_ server.
# Steps
We start by [downloading the `silverbullet-server-*` zip for your platform from GitHub](https://github.com/silverbulletmd/silverbullet/releases).
Unzip this archive somewhere convenient. You’ll get a single `silverbullet` executable.
Then, create a folder to hold your [[Space]] (your notes will live here):
```bash
mkdir my-space
```
Run the server, pointing it at that folder:
```bash
./silverbullet my-space
```
It listens on `http://localhost:3000` by default. To pick a different port, use `-p`:
```bash
./silverbullet -p 3001 my-space
```
And to bind on an address other than `127.0.0.1` (e.g. to make it reachable on your LAN), use `-L`:
```bash
./silverbullet -L 0.0.0.0 my-space
```
> **note** Note
> If you want to access SilverBullet from another machine, you need [[TLS]] _and_ you should enable [[Authentication]] first.
Now, open `http://localhost:3000` in your browser and head to [[Getting Started]] to learn the basics.
# Authentication
By default the server runs **unauthenticated** — anyone who can reach the port can read and write your space. This is fine for `localhost`, but as soon as you expose the server to anything else, set the `SB_USER` environment variable:
```bash
SB_USER=admin:somepassword ./silverbullet my-space
```
See [[Authentication]] and [[Install/Configuration]] for the full picture (lockout policy, API tokens, etc.).
# Configuration
The server is configured primarily through environment variables. The flags `-p` and `-L` above are the only command-line flags. Everything else is in [[Install/Configuration]].
# Upgrading
You can upgrade your SilverBullet install based on the version you’d like to run.
To upgrade to the latest **stable** release:
```bash
./silverbullet upgrade
```
To upgrade to the latest **edge** release (which keeps in sync with the `main` development branch):
```bash
./silverbullet upgrade-edge
```
To upgrade your client, be sure to refresh your page _twice_ somewhat slowly.
# Version
To check which version of SilverBullet you’re running, run the ${widgets.commandButton("Client: Version")} command.