Перейти к содержимому

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.

  • 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 run or Quadlet.

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 скачайте исходники и конфигурацию сборки. Команда получения готового пакета для этой платформы отсутствует.

Окно терминала
rexctl install

rexctl checks the machine, then asks these questions. Nothing changes until you confirm.

  1. Your domain or IP address.
  2. Whether a proxy is in front of Squad.
  3. Whether Squad starts with the machine, on Docker and systemd.
  4. Where to keep uploads.
  5. How often to back up.
  6. 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.

--runtime chooses where Squad runs.

FlagRunsDefault
--runtime systemdOne systemd service, as in the Linux with systemd guideOn Debian 12 or later, or Ubuntu 22.04 or later, as root
--runtime dockerOne Docker container, as in the Docker guideAnywhere else with Docker
--runtime podmanOne Podman containerOn 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.

CommandWhat it does
rexctl statusShows how Squad is doing, and whether a newer release is out once you run rexctl config set FLUXER_UPDATE_CHECK true
rexctl logsShows the logs, and rexctl logs api one part’s logs
rexctl doctorFinds problems, and rexctl doctor --fix fixes them
rexctl upgradeUpgrades now, and rexctl auto-upgrade on daily or weekly
rexctl rollbackGoes back to the release before the last upgrade, with the backup from before it when the upgrade changed your data
rexctl backupBacks up, and rexctl backup schedule daily backs up every day
rexctl backup copy-to backup@storage.example.org:/srv/fluxerCopies backups into that folder on the other host
rexctl restoreRestores a backup
rexctl config set FLUXER_SEARCH_ENGINE noneChanges a setting
rexctl proxy onPuts a proxy in front
rexctl invites create --uses 10 --expires 7dCreates an invite link
rexctl admins add alexMakes someone an instance admin
rexctl users reset-link alexHelps someone back into their account
rexctl voice addAdds 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.

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.

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-run
rexctl adopt

rexctl 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.

Окно терминала
rexctl uninstall

rexctl 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.