Skip to content

Device agent CLI ​

The installed binary doubles as its own management tool. Running thinr-agent without a command opens the interactive setup menu.

Global options ​

FlagMeaning
-h, --helpShow help (also per command).
--versionPrint the agent version.
-c, --config <path>Use a custom config file (default: /etc/thinr-agent/config.json as root, ~/.config/thinr-agent/config.json otherwise).
-v / -vvVerbose (info) / debug logging to the console.

Commands ​

install ​

Headless installation: registers the device, writes the config and sets up the service without prompts. See headless provisioning for recipes.

FlagMeaning
--token TOKENAuto-provisioning token; skips interactive authentication.
--device IDCustom device identifier (default: hostname).
--product IDProduct to associate (default: auto-detect, or thinremote).
--host HOSTServer to register against (usually embedded in the token).
--overwriteRe-register without prompting if the device already exists.
--no-startInstall the service but don't start it.
--no-verify-sslDisable TLS certificate verification (self-signed test servers).

update ​

Check for or apply a self-update. Without --apply it only reports whether an update is available.

FlagMeaning
--channel NAMERelease channel: latest (stable), main, develop. Default: latest.
--applyDownload, verify and install the update.
bash
thinr-agent update                       # check only
thinr-agent update --channel main --apply

See the update mechanism for the full flow.

reconfigure, uninstall ​

CommandPurpose
reconfigureRe-run the interactive setup (new server, new credentials).
uninstallStop the service, remove the unit, the binary, the configuration and the logs.

Both act on the scope matching the effective user id of the process: run them with sudo for a system-wide install, without it for a user install. Both are interactive and refuse to run without a terminal, so over SSH use ssh -t.

The status and test commands are listed in --help but are not implemented yet: they print a message and exit non-zero. To check a running agent use the init system (systemctl status thinr-agent) or the platform (thinr device list).

bootstrap ​

Seed the account's default monitoring alarm rules without provisioning a device. Useful when preparing an instance before any agent is installed.

FlagMeaning
--token TOKENJWT carrying svr (host) and usr (account) claims. Required.
--forceDelete existing default rules and recreate them.
--no-verify-sslDisable TLS certificate verification.

Released under the MIT License.