rexctl helper
rexctl is an optional helper for running Squad on one machine. It installs Squad, then upgrades it, backs it up, changes settings and manages people.
You don’t need it. The compose file and settings file that each release publishes are a supported way to run Squad without rexctl, as in the Docker guide. An instance on the older layout gets there once with rexctl migrate --to compose, or with rexctl detach after a move to one container. Moving from the older install has the steps.
What it manages
Заголовок раздела «What it manages»- It installs Squad in one Docker or Podman container, or as a systemd service.
- On Docker and Podman you can stop using it whenever you want.
- A systemd install stays managed by rexctl.
- It manages only the instances it installed.
- It takes over a Squad that runs from the release’s compose file with
rexctl adopt. - It can’t take over a Squad started with
docker runor Quadlet.
Install rexctl
Заголовок раздела «Install rexctl»Run this on Linux or macOS.
As root, rexctl goes in /usr/local/bin, and as any other user in ~/.local/bin.
Для Squad скачайте исходники и конфигурацию сборки. Команда получения готового пакета для этой платформы отсутствует.
The script checks the download against the release’s checksums, installs rexctl and starts rexctl install in the same terminal.
A systemd install needs rexctl to run as root. With sudo, the script only installs rexctl, then prints the command that sets up Squad.
Для Squad скачайте исходники и конфигурацию сборки. Команда получения готового пакета для этой платформы отсутствует.
On Docker or Podman, rexctl runs as the account that installed Squad. The automatic upgrades it sets up run as that account too.
On Windows, run this in PowerShell.
Для Squad скачайте исходники и конфигурацию сборки. Команда получения готового пакета для этой платформы отсутствует.
To put rexctl in another folder, set REXCTL_INSTALL_DIR.
Для Squad скачайте исходники и конфигурацию сборки. Команда получения готового пакета для этой платформы отсутствует.
Install Squad
Заголовок раздела «Install Squad»rexctl installrexctl checks the machine, then asks these questions. Nothing changes until you confirm.
- Your domain or IP address.
- Whether a proxy is in front of Squad.
- Whether Squad starts with the machine, on Docker and systemd.
- Where to keep uploads.
- How often to back up.
- Where to create your admin account.
When you create the admin account in the terminal, rexctl also asks you these. In the browser, the setup wizard asks them instead.
- How people sign in.
- Whether Squad can send email, when people sign in with an email address.
- The admin account.
- The instance name.
- Who can create an account.
Where Squad runs
Заголовок раздела «Where Squad runs»--runtime chooses where Squad runs.
| Flag | Runs | Default |
|---|---|---|
--runtime systemd | One systemd service, as in the Linux with systemd guide | On Debian 12 or later, or Ubuntu 22.04 or later, as root |
--runtime docker | One Docker container, as in the Docker guide | Anywhere else with Docker |
--runtime podman | One Podman container | On a machine with Podman and no Docker, except as root on those Debian and Ubuntu releases |
A new instance lets only people with an invite link create an account, and rexctl creates the first one if setup finishes in the terminal. rexctl registration set changes that.
Day to day
Заголовок раздела «Day to day»| Command | What it does |
|---|---|
rexctl status | Shows how Squad is doing, and whether a newer release is out once you run rexctl config set FLUXER_UPDATE_CHECK true |
rexctl logs | Shows the logs, and rexctl logs api one part’s logs |
rexctl doctor | Finds problems, and rexctl doctor --fix fixes them |
rexctl upgrade | Upgrades now, and rexctl auto-upgrade on daily or weekly |
rexctl rollback | Goes back to the release before the last upgrade, with the backup from before it when the upgrade changed your data |
rexctl backup | Backs up, and rexctl backup schedule daily backs up every day |
rexctl backup copy-to backup@storage.example.org:/srv/fluxer | Copies backups into that folder on the other host |
rexctl restore | Restores a backup |
rexctl config set FLUXER_SEARCH_ENGINE none | Changes a setting |
rexctl proxy on | Puts a proxy in front |
rexctl invites create --uses 10 --expires 7d | Creates an invite link |
rexctl admins add alex | Makes someone an instance admin |
rexctl users reset-link alex | Helps someone back into their account |
rexctl voice add | Adds a voice server next to Squad on a systemd install, and rexctl voice token lets a voice server on another machine join |
--help on any command prints its flags. On systemd, root manages the instance, so run every rexctl command with sudo. On Docker or Podman, run rexctl as the account that installed Squad, and leave out sudo with Podman without root. When a command needs root, rexctl offers to run itself with sudo.
rexctl keeps its own record of each install and the settings file it writes.
Change them only through rexctl, with rexctl config set and the other commands, so the next upgrade keeps your changes.
Stop using rexctl
Заголовок раздела «Stop using rexctl»On a Docker or Podman install, rexctl detach writes a compose file and a settings file into the instance folder, starts Squad from them with docker compose and stops managing the instance. Your data stays in the same volume.
On the default ports, the files are the ones each release publishes with a name: line for the project added. With other ports, the compose file keeps them and differs from the release file there.
rexctl then removes its own files from the folder. Your older backups stay in backups, and Squad keeps newer ones in its volume. Voice servers on other machines keep running, and you upgrade them yourself. rexctl detach refuses while a voice server runs in a container on the same machine.
An instance on the older layout moves and goes over to compose in one run with rexctl migrate --to compose.
From then on, you run it like any other Docker install. rexctl detach refuses a systemd install, which stays on rexctl’s unit fluxer.service.
Start using rexctl again
Заголовок раздела «Start using rexctl again»rexctl adopt takes a Squad that runs from a compose file and a settings file back into rexctl, on the same volume. It works with the release files, and with a folder that rexctl detach or rexctl migrate --to compose wrote.
rexctl adopt --dry-runrexctl adoptrexctl backs Squad up, stops it, starts the same release in its own container and checks it. If that doesn’t work, it starts Squad again with docker compose. It refuses lines in the compose file that no rexctl setting gives, such as data in a folder, and lists each one.
Remove Squad
Заголовок раздела «Remove Squad»rexctl uninstallrexctl lists what goes and what stays before it changes anything. It removes Squad and its data, and asks whether to keep your backups. Your backups stay unless you choose to delete them or pass --delete-backups.
--keep-data keeps the data too. To stop Squad and keep everything, run rexctl stop.