manage.flexfs
manage.flexfs provides host-level management of flexFS services. All subcommands require root privileges. All flags are public.
Subcommands
Section titled “Subcommands”| Subcommand | Description |
|---|---|
start [service...] | Start flexFS systemd services |
stop [service...] | Stop flexFS systemd services (reverse order) |
restart [service...] | Restart services (stop, clean, start) |
status [service...] | Show status of flexFS services |
clean | Remove flexFS temporary files and caches |
download <binary...> | Download flexFS binaries to /tmp |
install [binary...] | Install flexFS binaries from /tmp to /usr/sbin |
deploy | Deploy latest mount.flexfs binary to staging/production channels |
upgrade [binary...] | Full upgrade cycle (download, install, stop, clean, start) |
watch <service> | Follow journal logs for a flexFS service |
version | Print the build version |
license | Print license information |
Services
Section titled “Services”When a service argument is omitted, all services are targeted. The available service names are:
| Service | Binary | Start Order |
|---|---|---|
stat | stat.flexfs | 1 |
admin | admin.flexfs | 2 |
free | free.flexfs | 3 |
proxy | proxy.flexfs | 4 |
meta | meta.flexfs | 5 |
Services are started in the order shown above and stopped in reverse order.
Subcommand Details
Section titled “Subcommand Details”manage.flexfs start [service...]Starts the specified flexFS systemd services. If no services are named, all installed services are started.
manage.flexfs stop [service...]Stops the specified services in reverse order to respect dependencies.
restart
Section titled “restart”manage.flexfs restart [--vacuum] [service...]Stops, cleans, and starts the specified services.
| Flag | Type | Default | Description |
|---|---|---|---|
--vacuum | bool | false | Also vacuum system journal logs during clean |
status
Section titled “status”manage.flexfs status [service...]Shows the active state and uptime of each installed service.
manage.flexfs clean [--vacuum]Removes flexFS temporary files (/tmp/*.flexfs). Optionally vacuums systemd journal logs.
| Flag | Type | Default | Description |
|---|---|---|---|
--vacuum | bool | false | Also vacuum system journal logs |
download
Section titled “download”manage.flexfs download [--version <ver>] [--arch <arch>] [--install] <binary...>Downloads the specified flexFS binaries from get.flexfs.io to /tmp.
| Flag | Type | Default | Description |
|---|---|---|---|
--arch | string | host architecture | Architecture to download (e.g. amd64, aarch64) |
--install | bool | false | Install binaries to /usr/sbin after downloading |
--version | string | build version | Version branch to download (e.g. v1.9.x) |
install
Section titled “install”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.
| Flag | Type | Default | Description |
|---|---|---|---|
--arch | string | host architecture | Architecture to download for missing binaries |
--version | string | build version | Version branch for missing binaries |
deploy
Section titled “deploy”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.
| Flag | Type | Default | Description |
|---|---|---|---|
--adminPath | string | ~/.flexfs/admin | Admin folder path |
--channel | string | all | Deployment channel: staging, production, or all |
--version | string | build version | Version branch to deploy |
upgrade
Section titled “upgrade”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.
| Flag | Type | Default | Description |
|---|---|---|---|
--arch | string | host architecture | Architecture to download |
--vacuum | bool | false | Vacuum journal logs during clean |
--version | string | build version | Version branch to download |
manage.flexfs watch [--lines <n>] [--cat] <service>Follows journal logs for a flexFS service using journalctl -f.
| Flag | Type | Default | Description |
|---|---|---|---|
--cat | bool | false | Use plain text output (journalctl -o cat) |
--lines | int | 100 | Number of recent log lines to show |