Examples

Example 1: Use direct credentials on each command

hawkbit targets list \
  --management-url https://hawkbit.example.com \
  --username admin \
  --password admin \
  --no-verify-ssl \
  -o table

Example 2: Save credentials once, then reuse

hawkbit config set \
  --profile default \
  --management-url https://hawkbit.example.com \
  --username admin \
  --password admin \
  --no-verify-ssl

hawkbit config use default
hawkbit targets list -o table

Example 3: Distribution-only create

hawkbit distributions create \
  --name dist-only-test-001 \
  --version 1.0.0 \
  --management-url https://hawkbit.example.com \
  --username admin \
  --password admin \
  --no-verify-ssl \
  -o table

Example 4: Full flow create with artifact

hawkbit distributions create \
  --module-name fwup-test-001 \
  --artifact ./firmware-update.fw \
  --version 1.0.0 \
  --management-url https://hawkbit.example.com \
  --username admin \
  --password admin \
  --no-verify-ssl \
  -o table

Example 5: Assign and verify deployment

hawkbit deployment assign target-001 42 --type forced -o table
hawkbit deployment get target-001 -o table

Example 6: Deployment assign full flow

hawkbit deployment assign target-001 \
  --module-name fwup-test-002 \
  --artifact ./firmware-update.fw \
  --version 1.0.1 \
  -o table

Example 7: Delete module and distribution

hawkbit modules delete 100 -o table
hawkbit distributions delete 200 -o table
hawkbit distributions delete 200 --delete-modules -o table

Example 8: OIDC token authentication

hawkbit targets list \
  --management-url https://hawkbit.example.com \
  --oidc-token <your-access-token> \
  -o table