Cumulocity CLI 2.15.2
Changelog
New commands
c8y microservices loglevels
Renamed Commands
Group child commands and added query support #167, #164
Child devices are now made more generic so they are easier to use and maintain
c8y inventory children [command] --childType <asset|device|addition>
c8y devices children [command] --childType <asset|device|addition>
c8y devicegroups children [command] --childType <asset|device|addition>
As a result of the grouping the following commands have been deprecated. The commands will continue to work however they will not show up in any documentation or in command completion.
c8y devicegroups assignDevice
=>c8y devicegroups children assign --childType asset
c8y devicegroups assignGroup
=>c8y devicegroups children assign --childType asset
c8y devicegroups listAssets
=>c8y devicegroups children list --childType asset
c8y devicegroups unassignDevice
=>c8y devicegroups children unassign --childType asset
c8y devicegroups unassignGroup
=>c8y devicegroups children unassign --childType asset
c8y devices assignDevice
=>c8y devices children assign --childType device
c8y devices getChild
=>c8y devices children get --childType device
c8y devices listAssets
=>c8y devices children list --childType asset
c8y devices listChildren
=>c8y devices children list --childType device
c8y devices unassignChild
=>c8y devices children unassign --childType device
c8y inventory additions
=>c8y inventory children [command] --childType addition
c8y inventory assets
=>c8y inventory children [command] --childType asset
PowerShell: New commands to managed
The following cmdlets were added to PowerShell to managed child assets/additions/devices. Though please note that it is highly recommended to use native c8y
commands rather than the PowerShell module PSc8y
support may be dropped.
Add-DeviceChild
Add-DeviceGroupChild
Get-DeviceChild
Get-DeviceChildCollection
Get-DeviceGroupChild
Get-DeviceGroupChildCollection
New-DeviceChild
New-DeviceGroupChild
Remove-DeviceChild
Remove-DeviceGroupChild
Add-ManagedObjectChild
Get-ManagedObjectChild
Get-ManagedObjectChildCollection
New-ManagedObjectChild
Remove-ManagedObjectChild
The following PowerShell commands have been removed from PSc8y
Get-DeviceChildAssetCollection
=>Get-DeviceChildCollection -ChildType asset
Get-DeviceGroupChildAssetCollection
=>Get-DeviceGroupChildCollection -ChildType asset
Remove-Asset
=>Remove-ManagedObjectChild -ChildType asset
Add-DeviceToGroup
=>Add-DeviceGroupChild -ChildType asset
Remove-DeviceFromGroup
=>Remove-DeviceGroupChild -ChildType asset
New-ChildAddition
=>Remove-ManagedObjectChild -ChildType addition
Improvements
c8y applications createHostedApplication
- Create hosted app manifest support (#166)
c8y inventory find
- Added new flags to make it easier to filter by common fragments (similar to c8y devices list)
Add support for extending query flags
The following commands now support --query
, --queryTemplate
and --orderBy
flags. Some commands include additional query helper flags, check out the documentation for more details.
- c8y deviceprofiles list
- c8y configuration list
- c8y firmware list
- c8y firmware patches list
- c8y firmware versions list
- c8y software list
- c8y software versions list
Caching
- All types of HTTP requests are set to be cached when using
--cache
global flag, e.g.GET PUT DELETE POST
(#169) - New global flag
--cacheBodyPaths name,type
which limits which json body fragments are used in the uniqueness calculation (#158) - Only responses with a status code of less than 300 are cached (#169)
Misc.
-
docker image includes coreutils (#157)
-
dry run skips mode checks (#154)
-
customQueryParam
fixed parsing error when using--customQueryParam
with an ISO-8601 date string.Example:
c8y api GET /measurement/measurements --customQueryParam 'dateFrom=2022-08-11T22:43:00.405+02:00'
-
fix homebrew packaging bug
New Contributors
Full Changelog: v2.14.0...v2.15.1