Targets

Command descriptions

Command What it does
hawkbit targets list Retrieves targets from hawkBit, with optional pagination.
hawkbit targets get <target-id> Retrieves full details of one target.
hawkbit targets delete-inactive Deletes targets inactive for a duration (--months, --days, --hours).

targets list

Purpose: view all known targets and their high-level status.

The output includes an inactive column when available (derived from target poll overdue state).

hawkbit targets list -o table

With pagination:

hawkbit targets list --limit 100 --offset 0 -o table

targets get

Purpose: inspect a single target in detail (metadata and state).

hawkbit targets get <target-id> -o table

targets delete-inactive

Purpose: remove stale targets based on lastControllerRequestAt.

Dry-run preview:

hawkbit targets delete-inactive --days 30 --dry-run -o table

Execute deletion:

hawkbit targets delete-inactive --days 30 --execute -o table

Delete all targets currently marked inactive:

hawkbit targets delete-inactive --by-inactive-flag --execute -o table

Notes:

  • Inactivity threshold accepts months/days/hours (months are treated as 30 days).
  • Use --exclude-never-seen to avoid deleting targets with no lastControllerRequestAt.
  • --by-inactive-flag ignores duration options and uses each target inactive state.