MetriBeacon
Menu

CLI keys and numeric data

Manage device keys and send a numerical value with the CLI.

On this page

What you need

A configured identity with keys:write and access to the monitor.

How to do it

  1. Create a key with key claim for your monitor. Export it to a private file only when a separate sender needs it.
  2. Use metric send with the monitor, series name, value and actual measurement time.
  3. Use key rotate --yes to replace the key or key revoke --yes to stop it. Update external senders after rotation.

Good to know

The CLI keeps keys in private files rather than printing their full values in status output. A device key sends data; it does not manage your account. Replace demo timestamps in the example with the current measurement time.

shell
metribeacon key claim --monitor-id MONITOR_UUID --json
metribeacon key export --monitor-id MONITOR_UUID --output "$HOME/device.key"
metribeacon metric send --monitor-id MONITOR_UUID --name temperature \
  --value 21.5 --at 2026-09-30T12:00:00Z --idempotency-key POINT_UUID --json

If something goes wrong

If a sender stops after rotation, check its exported key file. Retry the same prepared key operation after a lost response rather than generating another key.