After creating application using iectl publisher standalone-app create
You can create an app version by using the --devicefeatures
as API.Shutdown
:
The Applications will be allowed to trigger a Shutdown Operation, on the supporting device. The Device will gracefully shutdown in case triggered, by releasing the resources to avoid damaging integrity of the system. Especially useful for electric outage detection applications to trigger a shutdown in case of an outage.
# Create application version which does not have any redirection
$ iectl publisher standalone-app version create \
--appname "my_app" -v "0.0.1" \
--yamlpath "/yaml/docker-compose.yaml" \
--changelogs "changelogs" \
--redirectsection "" \
--redirecttype "ExternalLink" \
--redirecturl "" \
--devicefeatures 'API.Shutdown' \
NOTICE
Supported device feature is 'API.Shutdown' for 'ie.device.software.device.shutdown'.