nerves_firmware_http v0.4.1 Mix.Tasks.Firmware.Push
Pushes firmware to a Nerves device.
This task will take a fw file path passed as —firmware or discover it from a target passed as —target.
Command line options
--target
- The target string of the target configuration.--firmware
- The path to a fw file.--reboot
- true / false if the target should reboot after applying firmware.
For example, to push firmware to a device at an IP by specifying a fw file
mix firmware.push 192.168.1.120 —firmware _images/rpi3/my_app.fw
Or by discovering it with the target
mix firmware.push 192.168.1.120 —target rpi3
This task needs to run in the context of your host so it is not advised to
pass MIX_TARGET
or NERVES_TARGET
in your env
Summary
Functions
A task needs to implement run
which receives
a list of command line args
Functions
A task needs to implement run
which receives
a list of command line args.
Callback implementation for Mix.Task.run/1
.