Get started

Guided install

homespace-ctl is the administration tool of Home Space. Its install command asks a few questions, writes the compose file, the settings and the secrets, starts the server and offers to create your first administrator.

It builds the same setup as Install the server, a db and an app container from the pre-built image, with more choices: Docker or Podman, secrets in files or in .env, data in volumes or in host folders owned by a dedicated user, and nginx or no proxy. To see each step, or to write the files yourself, follow the manual guide instead.

What you need

1. Download homespace-ctl

Each release has homespace-ctl for Linux x86-64 (a static binary that runs on any distribution), Windows x86-64 and macOS on Apple Silicon. Set VERSION to the latest release:

shell
VERSION=0.15.1
NAME=homespace-ctl-$VERSION-linux-x86_64
BASE=https://github.com/home-space-app/home-space/releases/download/v$VERSION
curl -fsSLO $BASE/$NAME.tar.gz
curl -fsSLO $BASE/SHA256SUMS
sha256sum -c --ignore-missing SHA256SUMS
tar -xzf $NAME.tar.gz
sudo install -m 755 $NAME/homespace-ctl /usr/local/bin/
homespace-ctl --version

The installer pins the server image to its own version (homespaceapp/home-space:0.15.1), because the two are released together.

2. Run the installer

shell
homespace-ctl install             # add --dry-run to see the files without changing anything

Press Enter to take the default answer. It asks:

QuestionChoices
Container engineDocker or Podman, when both are installed.
Installation directoryWhere compose.yaml goes; default /opt/homespace. It must not exist yet.
SecretsOne file per secret under secrets/, mounted as compose secrets (the default), or a .env file with mode 600.
StorageContainer volumes, or host folders owned by a dedicated user (a new homespace system user by default). The folders must not exist yet.
Database user and password, JWT secretGenerated unless you type your own.
Reverse proxyFor nginx it writes an example site to nginx/<server name>.conf, which you then install yourself (see Reverse proxy with nginx).
Public URLThe address users open, such as https://files.example.com.
Sign-inPasswords, single sign-on, or both. Single sign-on needs an https:// public URL.

It always generates HOMESPACE_SECRETS_KEY, so users can add an authenticator app. Steps that need root, such as creating the user and the directories, go through sudo. With rootless Podman the containers run as you; run the installer with sudo to use a dedicated user instead.

The server is published on a free port on 127.0.0.1, or on all interfaces when no proxy is used and the public URL is not local. The database is reachable only inside the compose network. Last, it starts the containers and offers to create the first administrator.

3. Manage the server

The installer records where the installation is in ~/.config/home-space/installation.toml of the user who ran it, so run the other commands as that user. They run inside the app container, which has the database and the files at hand:

shell
homespace-ctl user add alice      # prompts for the password
homespace-ctl user list
homespace-ctl secrets rotate      # see "Rotate the secrets" in the install guide

The command reference lists every command. To change a setting, edit .env in the installation directory and run sudo docker compose up -d (or podman compose up -d) there.

A second installation

The compose project is named homespace. install refuses when a project of that name already exists in another directory; set HOMESPACE_COMPOSE_PROJECT to install a second one next to it.

Update

Download the new homespace-ctl as in step 1. Then change the image tag in compose.yaml to the new version and pull it:

shell
cd /opt/homespace
sudo sed -i 's|homespaceapp/home-space:.*|homespaceapp/home-space:0.15.1|' compose.yaml
sudo docker compose pull
sudo docker compose up -d

Back up as described under Back up first; keep a copy of .env and of secrets/ as well.