Deployment¶
Command descriptions¶
| Command | What it does |
|---|---|
hawkbit deployment get <target-id> |
Shows which distribution is currently assigned to a target. |
hawkbit deployment history <target-id> |
Lists deployment actions for a target (history). |
hawkbit deployment progress <target-id> <action-id> |
Shows detailed progress/status entries for one action. |
hawkbit deployment assign <target-id> [distribution-id] |
Assigns a distribution id to a target, or creates module+artifact+distribution first and then assigns it. |
hawkbit deployment remove <target-id> |
Removes current assignment from a target. |
deployment get¶
Purpose: confirm what is currently deployed/assigned to a target.
hawkbit deployment get <target-id> -o table
deployment assign¶
Purpose: initiate deployment by assigning a distribution set to a target.
hawkbit deployment assign <target-id> <distribution-id> \
--type forced \
-o table
Supported --type values:
forcedsofttimeforceddownloadonly
Optional flags:
--weight <int>--offline/--no-offline
Full flow mode (create module + upload artifact + create distribution + assign):
hawkbit deployment assign <target-id> \
--module-name my-firmware \
--artifact ./firmware-update.fw \
--version 1.0.0 \
-o table
deployment history¶
Purpose: inspect previous and active actions for a target.
hawkbit deployment history <target-id> -o table
Show only active actions:
hawkbit deployment history <target-id> --q 'active==true' -o table
deployment progress¶
Purpose: inspect progress/status entries for one action on a target.
hawkbit deployment progress <target-id> <action-id> -o table
deployment remove¶
Purpose: clear the target assignment when you need to stop/unset deployment.
hawkbit deployment remove <target-id> -o table