Skip to content

manage.flexfs

manage.flexfs provides host-level management of flexFS services. All subcommands require root privileges. All flags are public.

SubcommandDescription
cleanRemove flexFS temporary files and caches
deinitRemove credentials file
deployDeploy latest mount.flexfs binary to staging/production channels
download <binary...>Download flexFS binaries to /tmp
initInitialize credentials (custom download server address)
install [binary...]Install flexFS binaries from /tmp to /usr/sbin
licensePrint license information
restart [service...]Restart services (stop, clean, start)
start [service...]Start flexFS systemd services
status [service...]Show status of flexFS services
stop [service...]Stop flexFS systemd services (reverse order)
upgrade [binary...]Full upgrade cycle (download, install, stop, clean, start)
versionPrint the build version
watch <service>Follow journal logs for a flexFS service

When a service argument is omitted, all services are targeted. The available service names are:

ServiceBinaryStart Order
statstat.flexfs1
adminadmin.flexfs2
freefree.flexfs3
proxyproxy.flexfs4
metameta.flexfs5

Services are started in the order shown above and stopped in reverse order.

FlagTypeDefaultDescription
--credsFilestring~/.flexfs/manage/credsCredentials file path
--downloadAddrstringDownload server address (overrides creds file)
Terminal window
manage.flexfs init --downloadAddr <addr> [--force]

Initializes a credentials file for manage.flexfs with a custom download server address. Commands that download binaries (download, deploy, upgrade, install) read this file to resolve the server address.

FlagTypeDefaultDescription
--downloadAddrstring""Download server address (required)
--forceboolfalseOverwrite existing creds file
Terminal window
manage.flexfs deinit

Removes the credentials file. After removal, download commands fall back to the default server (get.flexfs.io).

Terminal window
manage.flexfs start [--vacuum] [service...]

Starts the specified flexFS systemd services. If no services are named, all installed services are started.

FlagTypeDefaultDescription
--vacuumboolfalseAlso vacuum system journal logs
Terminal window
manage.flexfs stop [--vacuum] [service...]

Stops the specified services in reverse order to respect dependencies.

FlagTypeDefaultDescription
--vacuumboolfalseAlso vacuum system journal logs
Terminal window
manage.flexfs restart [--vacuum] [service...]

Stops, cleans, and starts the specified services.

FlagTypeDefaultDescription
--vacuumboolfalseAlso vacuum system journal logs during clean
Terminal window
manage.flexfs status [service...]

Shows the active state and uptime of each installed service.

Terminal window
manage.flexfs clean [--vacuum]

Removes flexFS temporary files (/tmp/*.flexfs). Optionally vacuums systemd journal logs.

FlagTypeDefaultDescription
--vacuumboolfalseAlso vacuum system journal logs
Terminal window
manage.flexfs download [--version <ver>] [--arch <arch>] [--install] [binary...]

Downloads the specified flexFS binaries to /tmp. Uses the download server address from the credentials file, or get.flexfs.io by default.

FlagTypeDefaultDescription
--archstringhost architectureArchitecture to download (e.g. amd64, aarch64)
--installboolfalseInstall binaries to /usr/sbin after downloading
--versionstringbuild versionVersion branch to download (e.g. v1.9.x)
Terminal window
manage.flexfs install [--version <ver>] [--arch <arch>] [binary...]

Installs flexFS binaries from /tmp to /usr/sbin. When binary names are given, any missing from /tmp are downloaded automatically.

FlagTypeDefaultDescription
--archstringhost architectureArchitecture to download for missing binaries
--versionstringbuild versionVersion branch for missing binaries
Terminal window
manage.flexfs deploy [--channel <channel>] [--version <ver>] [--adminPath <path>]

Downloads mount.flexfs for both architectures and places them in the admin server’s deploy directory for auto-update.

FlagTypeDefaultDescription
--adminPathstring~/.flexfs/adminAdmin folder path
--channelstringallDeployment channel: staging, production, or all
--versionstringbuild versionVersion branch to deploy
Terminal window
manage.flexfs upgrade [--version <ver>] [--arch <arch>] [--vacuum] [binary...]

Performs a full upgrade: downloads and installs binaries, stops all services, cleans state, then starts services.

FlagTypeDefaultDescription
--archstringhost architectureArchitecture to download
--vacuumboolfalseVacuum journal logs during clean
--versionstringbuild versionVersion branch to download
Terminal window
manage.flexfs watch [--lines <n>] [--cat] <service>

Follows journal logs for a flexFS service using journalctl -f.

FlagTypeDefaultDescription
--catboolfalseUse plain text output (journalctl -o cat)
--linesint100Number of recent log lines to show