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.

status, test, reconfigure, uninstall

CommandPurpose
statusShow the connection status of the running agent.
testTest connectivity with the current configuration.
reconfigureRe-run the interactive setup (new server, new credentials).
uninstallRemove the service and the configuration.

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.