Skip to content

Cumulocity CLI 2.8.0

Compare
Choose a tag to compare
@github-actions github-actions released this 16 Feb 21:38
· 51 commits to master since this release

Improvements

Filter: Add date and relative date client side filtering (#109)

Add new operations to compare dates which is timezone aware and supports relative dates. Checkout the filter docs for more details.

Examples

# filter by relative date
c8y inventory list \
    --pageSize 2000 \
    --filter "creationTime newerthan -2h" \
    --select id,creationTime

# filter by date range
c8y inventory list \
    --pageSize 20 \
    --filter "lastUpdated newerthan 2022-01-18" \
    --filter "lastUpdated olderthan 2022-01-18 15:00" \
    --select id,lastUpdated

c8y users create/update: support template and data flags (#107)

# Create a user using a template
c8y users create --template "{email: '[email protected]', userName: $.email, firstName: 'Peter'}" --sendPasswordResetEmail

# Update the email field in each user to match the id (if the id includes the @ sign)
c8y users list --filter "id like *@*" | c8y users update --template "{email: input.value.id}"

c8y alarms list (#108)

Added the following flags:

  • createdFrom - Start date or date and time of the alarm creation. Version >= 10.11
  • createdTo - End date or date and time of the alarm creation. Version >= 10.11
  • lastUpdatedFrom - Start date or date and time of the last update made. Version >= 10.11
  • lastUpdatedTo - End date or date and time of the last update made. Version >= 10.11

c8y alarms updateCollection (#108)

Added the following flags:

  • createdFrom - Start date or date and time of the alarm creation. Version >= 10.11
  • createdTo - End date or date and time of the alarm creation. Version >= 10.11

c8y alarms deleteCollection (#108)

Added the following flags:

  • createdFrom - Start date or date and time of the alarm creation. Version >= 10.11
  • createdTo - End date or date and time of the alarm creation. Version >= 10.11

Fixes

  • filter flag now supports filtering by Boolean values (#107)

    echo "{\"value\": true}" | c8y util show --filter "value eq true"