A free and open source instant messaging and VoIP chat app built for friends, groups, and communities.
docs: add the rexctl command reference
Hampus38603fdeafbe
diff --git a/fluxer_docs/src/content/docs/operator/rexctl.mdx b/fluxer_docs/src/content/docs/operator/rexctl.mdxnew file mode 100644index 000000000..4e9969a27--- /dev/null+++ b/fluxer_docs/src/content/docs/operator/rexctl.mdx@@ -0,0 +1,808 @@+---+# SPDX-License-Identifier: AGPL-3.0-or-later+title: rexctl commands+description: Every rexctl command and flag, made from rexctl's own help.+---++This page is made from the help that rexctl prints, and `rexctl <command> --help` shows the same text in the terminal.++## Flags for every command++- `--dir string`++ Folder with your instance.++- `-q`, `--quiet`++ Print only errors and results.++- `--verbose`++ Print every step and command.++- `-y`, `--yes`++ Answer yes to every question and never prompt.++## rexctl admins++Choose who can manage your instance.++### rexctl admins add++Make an account an admin.++```sh+rexctl admins add <user>+```++### rexctl admins remove++Remove admin access from an account.++```sh+rexctl admins remove <user>+```++### rexctl admins sign-in-link++Print a link that signs an admin in once.++```sh+rexctl admins sign-in-link <user>+```++## rexctl backup++Back up your instance. Fluxer pauses while uploads are copied.++```sh+rexctl backup+```++### rexctl backup list++List your backups.++```sh+rexctl backup list [flags]+```++- `--json`++ Print JSON.++### rexctl backup verify++Check that a backup is complete and readable.++```sh+rexctl backup verify <file>+```++## rexctl branding++Change your instance's name, colour and images.++### rexctl branding set++Change the name, colour, logo or icon.++```sh+rexctl branding set [flags]+```++- `--colour string`++ Accent colour as a hex code, like #4641d9.++- `--icon string`++ Image file for the icon.++- `--logo string`++ Image file for the logo.++- `--name string`++ Your instance's name.++## rexctl config++Read and change Fluxer's settings.++### rexctl config get++Show one setting.++```sh+rexctl config get <key> [flags]+```++- `--json`++ Print JSON.++- `--reveal`++ Print a secret rexctl keeps.++### rexctl config list++List every setting with its value and help.++```sh+rexctl config list [flags]+```++- `--all`++ Also list every raw setting and the secrets rexctl generated.++- `--json`++ Print JSON.++### rexctl config set++Change one or more settings.++```sh+rexctl config set <key> <value> | <key>=<value>...+```++### rexctl config unset++Go back to the default for one or more settings.++```sh+rexctl config unset <key>...+```++## rexctl doctor++Check your instance and this machine for problems.++```sh+rexctl doctor [flags]+```++- `--fix`++ Fix the problems rexctl can fix safely.++- `--json`++ Print JSON.++## rexctl eject++Writes every setting into the instance folder for docker compose and stops rexctl from changing the instance. Fluxer keeps running. Run rexctl takeover to hand it back.++```sh+rexctl eject+```++## rexctl email++Set up how your instance sends email.++### rexctl email off++Stop sending email.++```sh+rexctl email off+```++### rexctl email set++Set the SMTP server.++```sh+rexctl email set [flags]+```++- `--from string`++ Sender, like Example Chat \<[email protected]>.++- `--host string`++ The SMTP server.++- `--password-file string`++ File with the SMTP password, or - for stdin.++- `--port int`++ The SMTP port. The default is `587`.++- `--tls string`++ How the connection is encrypted (starttls, implicit, opportunistic or none). Picked from the port when left out.++- `--username string`++ The username for the SMTP server.++### rexctl email test++Send a test email.++```sh+rexctl email test [address]+```++## rexctl install++Install Fluxer on this machine, or take over an existing install.++```sh+rexctl install [flags]+```++- `--admin-email string`++ Email address for your admin account.++- `--admin-password-file string`++ File with your admin password, or - for stdin.++- `--admin-username string`++ Username for your admin account.++- `--behind-proxy`++ Serve plain HTTP for your own reverse proxy.++- `--bind string`++ Address your proxy connects to, with --behind-proxy. The default is `127.0.0.1:8080`.++- `--confirm string`++ Your instance's domain, to confirm without a prompt.++- `--delete-old-data`++ Delete Fluxer data found on this machine and start fresh.++- `--domain string`++ Address people will use to open your instance, like chat.example.com.++- `--dry-run`++ Show what would happen without changing anything.++- `--engine string`++ Container engine to use (docker or podman).++- `--install-docker`++ Install Docker if it's missing. The default is `true`.++- `--memory-profile string`++ Small, medium or large (picked from this machine's memory).++- `--name string`++ Your instance's name.++- `--no-start`++ Write the files without starting Fluxer.++- `--open-firewall`++ Open the ports Fluxer needs in ufw or firewalld. The default is `true`.++- `--registration string`++ Who can create an account (invite, approval, open or closed).++- `--setup string`++ Where to create your admin account (terminal or browser).++- `--setup-podman`++ Start Podman's API socket and start Fluxer with the machine. The default is `true`.++- `--sign-in string`++ How people sign in (email or username).++- `--skip-email`++ Set up email later.++- `--smtp-from string`++ Sender, like Example Chat \<[email protected]>.++- `--smtp-host string`++ The SMTP server.++- `--smtp-password-file string`++ File with the SMTP password, or - for stdin.++- `--smtp-port int`++ The SMTP port. The default is `587`.++- `--smtp-tls string`++ How the connection is encrypted (starttls, implicit, opportunistic or none). Picked from the port when left out.++- `--smtp-username string`++ The username for the SMTP server.++- `--take-over`++ Take over Fluxer data found on this machine.++- `--voice-ip string`++ Public IP address for voice and video (found automatically).++## rexctl invites++Manage invite links for new accounts.++### rexctl invites create++Create an invite link.++```sh+rexctl invites create [flags]+```++- `--expires string`++ How long the link works, like 12h, 7d or never. The default is `7d`.++- `--label string`++ A note to help you recognise the link.++- `--uses int`++ How many people can use the link, or 0 for no limit. The default is `1`.++### rexctl invites list++List invite links.++```sh+rexctl invites list [flags]+```++- `--json`++ Print JSON.++### rexctl invites revoke++Stop an invite link from working.++```sh+rexctl invites revoke <id>+```++## rexctl logs++Show logs from your instance.++The services are web, api, worker, gateway, voice, media, edge, admin, push, database, search, storage, cache, queue and internal.+Without a service, rexctl shows every service.++```sh+rexctl logs [service] [flags]+```++- `-f`, `--follow`++ Keep printing new lines.++- `--since string`++ Show lines newer than this, like 10m or 2h.++## rexctl proxy++Use your own reverse proxy in front of Fluxer.++### rexctl proxy off++Serve HTTPS directly with a certificate from Let's Encrypt.++```sh+rexctl proxy off+```++### rexctl proxy on++Serve plain HTTP for your own proxy.++```sh+rexctl proxy on [flags]+```++- `--bind string`++ Address your proxy connects to. The default is `127.0.0.1:8080`.++## rexctl registration++Choose who can create an account.++### rexctl registration approve++Approve a person waiting for approval.++```sh+rexctl registration approve <id>+```++### rexctl registration deny++Turn down a person waiting for approval.++```sh+rexctl registration deny <id>+```++### rexctl registration pending++List people waiting for approval.++```sh+rexctl registration pending [flags]+```++- `--json`++ Print JSON.++### rexctl registration set++Set who can create an account.++```sh+rexctl registration set <open|approval|invite|closed>+```++## rexctl restart++Restart your instance.++```sh+rexctl restart+```++## rexctl restore++Restore your instance from a backup. This works on a new machine too. Copy the backup file there and run this command.++```sh+rexctl restore <file> [flags]+```++- `--confirm string`++ Your instance's domain, to confirm without a prompt.++- `--engine string`++ Move the instance to another engine while restoring (docker).++## rexctl rollback++Go back to the release you ran before the last upgrade.++```sh+rexctl rollback [flags]+```++- `--confirm string`++ Your instance's domain, to confirm without a prompt.++- `--dry-run`++ Show what would happen without changing anything.++- `--restore-database`++ Also restore the database from the backup taken before the upgrade.++## rexctl setup++Create the admin account and finish setup in the terminal.++```sh+rexctl setup [flags]+```++- `--admin-email string`++ Email address for your admin account.++- `--admin-password-file string`++ File with your admin password, or - for stdin.++- `--admin-username string`++ Username for your admin account.++- `--name string`++ Your instance's name.++- `--registration string`++ Who can create an account (invite, approval, open or closed).++- `--sign-in string`++ How people sign in (email or username).++- `--skip-email`++ Set up email later.++- `--smtp-from string`++ Sender, like Example Chat \<[email protected]>.++- `--smtp-host string`++ The SMTP server.++- `--smtp-password-file string`++ File with the SMTP password, or - for stdin.++- `--smtp-port int`++ The SMTP port. The default is `587`.++- `--smtp-tls string`++ How the connection is encrypted (starttls, implicit, opportunistic or none). Picked from the port when left out.++- `--smtp-username string`++ The username for the SMTP server.++### rexctl setup token++Show the setup token for the browser.++```sh+rexctl setup token+```++## rexctl start++Start your instance.++```sh+rexctl start+```++## rexctl status++Show whether your instance is running.++```sh+rexctl status [flags]+```++- `--json`++ Print JSON.++## rexctl stop++Stop your instance.++```sh+rexctl stop+```++## rexctl takeover++Hands an instance made by the old installer, by hand with docker compose, or released with rexctl eject over to rexctl. Fluxer keeps running as it is.++```sh+rexctl takeover [flags]+```++- `--dry-run`++ Show what would change without changing anything.++## rexctl uninstall++Remove Fluxer from this machine.++```sh+rexctl uninstall [flags]+```++- `--confirm string`++ Your instance's domain, to confirm without a prompt.++- `--keep-data`++ Keep your data and backups.++## rexctl upgrade++Upgrade rexctl and Fluxer to the latest release.++```sh+rexctl upgrade [flags]+```++- `--check`++ Show whether an upgrade is available without changing anything.++- `--dry-run`++ Show what would happen without changing anything.++- `--json`++ Print JSON.++- `--no-backup`++ Skip the backup before upgrading.++- `--prefetch`++ Download the new version and upgrade later.++- `--to string`++ Upgrade to this version, not the latest.++## rexctl users++Manage accounts on your instance.++### rexctl users ban++Ban an account.++```sh+rexctl users ban <user> [flags]+```++- `--delete-messages`++ Also delete their messages.++- `--reason string`++ Why you're banning them, one of spam, scam, harassment, hate, threats, raids, automation, ban-evasion, impersonation, malware, doxxing, intimate-images, explicit-content, adult-content, violence, self-harm, illegal, deception, exploits or report-abuse.++### rexctl users create++Create an account and print a link to set its password.++```sh+rexctl users create <username> [flags]+```++- `--admin`++ Make the account an admin.++- `--email string`++ Email address for the account.++### rexctl users delete++Delete an account and its data.++```sh+rexctl users delete <user> [flags]+```++- `--confirm string`++ Your instance's domain, to confirm without a prompt.++### rexctl users disable-mfa++Turn off two-factor authentication for an account.++```sh+rexctl users disable-mfa <user>+```++### rexctl users list++List accounts.++```sh+rexctl users list [flags]+```++- `--admins`++ Only show admins.++- `--json`++ Print JSON.++- `--search string`++ Only show accounts that match this text.++### rexctl users reset-link++Print a link to set a new password.++```sh+rexctl users reset-link <user>+```++### rexctl users show++Show one account.++```sh+rexctl users show <user> [flags]+```++- `--json`++ Print JSON.++### rexctl users sign-out++Sign an account out everywhere.++```sh+rexctl users sign-out <user>+```++### rexctl users unban++Lift a ban.++```sh+rexctl users unban <user>+```++## rexctl version++Show the rexctl and Fluxer versions.++```sh+rexctl version [flags]+```++- `--json`++ Print JSON.