View Source mix nerves_hub.firmware (nerves_hub_cli v2.0.1)
Manage Firmware on NervesHub
publish
Upload signed firmware to NervesHub. Supplying a path to the firmware file is optional. If it is not specified, NervesHub will locate the firmware based off the project settings.
mix nerves_hub.firmware publish [Optional: /path/to/app.firmware]
Command-line options
--product
- (Optional) The product name to publish the firmware to. This defaults to the Mix Project config:app
name.--deploy
- (Optional) The name of a deployment to update following firmware publish. This key can be passed multiple times to update multiple deployments.--key
- (Optional) The firmware signing key to sign the firmware with.--ttl
- (Optional) The firmware max time to live seconds.
list
mix nerves_hub.firmware list
Command-line options
--product
- (Optional) The product name to publish the firmware to. This defaults to the Mix Project config:app
name.
delete
Firmware can only be deleted if it is not associated to any deployment.
Call list
to retrieve firmware UUIDs
mix nerves_hub.firmware delete [firmware_uuid]
sign
Sign the local firmware. Supplying a path to the firmware file is optional. If it is not specified, NervesHub will locate the firmware based off the project settings.
mix nerves_hub.firmware sign [Optional: /path/to/app.firmware]
Command-line options
--key
- (Optional) The firmware signing key to sign the firmware with.
Summary
Functions
Callback implementation for Mix.Task.run/1
.