Skip to content

manage.flexfs

manage.flexfs provides host-level management of flexFS services. Most subcommands require root privileges; init creds, deinit creds, license, and version do not.

These flags apply to every subcommand.

FlagTypeDefaultDescriptionVisibility
--reportErrorsboolfalseReport errors and panics to Paradigm4Public
SubcommandDescriptionVisibility
cleanRemove flexFS temporary files and cachesPublic
deinit credsRemove credentials filePublic
deployDeploy mount.flexfs binary to staging/production channelsPublic
download [binary...]Download flexFS binaries to /tmpPublic
init credsInitialize credentials (custom download server address)Public
install [binary...]Install flexFS binaries from /tmp to /sbinPublic
licensePrint license informationPublic
restart [service...]Restart services (stop, start)Public
start [service...]Start flexFS systemd servicesPublic
status [service...]Show status of flexFS servicesPublic
stop [service...]Stop flexFS systemd services (reverse order)Public
upgrade [binary...]Full upgrade cycle (clean, download, install, restart affected services)Public
versionPrint the build versionPublic
watch <service>Follow journal logs for a flexFS servicePublic

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

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

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

Terminal window
manage.flexfs init creds --downloadAddr <download-addr> [--credsFile <path>] [--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.

FlagTypeDefaultDescriptionVisibility
--credsFilestring~/.flexfs/manage/credsCredentials file path to writePublic
--downloadAddrstring""Download server address (required)Public
--forceboolfalseOverwrite existing credentials filePublic
Terminal window
manage.flexfs deinit creds [--credsFile <path>]

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

FlagTypeDefaultDescriptionVisibility
--credsFilestring~/.flexfs/manage/credsCredentials file pathPublic
Terminal window
manage.flexfs start [--vacuum] [service...]

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

FlagTypeDefaultDescriptionVisibility
--vacuumboolfalseAlso vacuum system journal logsPublic
Terminal window
manage.flexfs stop [--vacuum] [service...]

Stops the specified services in reverse order to respect dependencies.

FlagTypeDefaultDescriptionVisibility
--vacuumboolfalseAlso vacuum system journal logsPublic
Terminal window
manage.flexfs restart [--vacuum] [service...]

Stops and starts the specified services.

FlagTypeDefaultDescriptionVisibility
--vacuumboolfalseAlso vacuum system journal logsPublic
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.

FlagTypeDefaultDescriptionVisibility
--vacuumboolfalseAlso vacuum system journal logsPublic
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.

FlagTypeDefaultDescriptionVisibility
--archstringhost architectureArchitecture to download (e.g. amd64, aarch64)Public
--credsFilestring~/.flexfs/manage/credsCredentials file pathPublic
--downloadAddrstring""Download server address (overrides credentials file)Internal
--installboolfalseInstall binaries to /sbin after downloadingPublic
--versionstringbuild versionVersion branch to download (e.g. v1.9.x)Public
Terminal window
manage.flexfs install [--version <ver>] [--arch <arch>] [binary...]

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

FlagTypeDefaultDescriptionVisibility
--archstringhost architectureArchitecture to download for missing binariesPublic
--credsFilestring~/.flexfs/manage/credsCredentials file path (used when downloading missing binaries)Public
--downloadAddrstring""Download server address (overrides credentials file)Internal
--versionstringbuild versionVersion branch for missing binariesPublic
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.

FlagTypeDefaultDescriptionVisibility
--adminPathstring~/.flexfs/adminAdmin folder pathPublic
--channelstringallDeployment channel: staging, production, or allPublic
--credsFilestring~/.flexfs/manage/credsCredentials file pathPublic
--downloadAddrstring""Download server address (overrides credentials file)Internal
--versionstringbuild versionVersion branch to deployPublic
Terminal window
manage.flexfs upgrade [--version <ver>] [--arch <arch>] [--vacuum] [--deploy [--channel <channel>] [--adminPath <path>]] [binary...]

Performs a full upgrade: cleans state, downloads and installs binaries, then restarts only the services whose binaries were upgraded (not all services). When no binary names are given, it upgrades every flexFS binary found in /sbin. With --deploy, it then deploys mount.flexfs for the upgraded version — equivalent to running deploy afterward, reusing the same --version.

FlagTypeDefaultDescriptionVisibility
--adminPathstring~/.flexfs/adminAdmin folder path (used with --deploy)Public
--archstringhost architectureArchitecture to downloadPublic
--channelstringallDeployment channel for --deploy: staging, production, or allPublic
--credsFilestring~/.flexfs/manage/credsCredentials file pathPublic
--deployboolfalseAfter upgrading, also deploy mount.flexfs (equivalent to running deploy)Public
--downloadAddrstring""Download server address (overrides credentials file)Internal
--vacuumboolfalseAlso vacuum system journal logsPublic
--versionstringbuild versionVersion branch to download (and deploy with --deploy)Public
Terminal window
manage.flexfs watch [--lines <n>] [--cat] <service>

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

FlagTypeDefaultDescriptionVisibility
--catboolfalseUse plain text output (journalctl -o cat)Public
--linesint100Number of recent log lines to showPublic