nerves_firmware_ssh v0.3.2 mix firmware.push

Upgrades the firmware on a Nerves device using SSH.

This task copies a .fw file to a Nerves device running nerves_firmware_ssh, upgrades the device and then reboots.

Command line options

  • --firmware - The path to a fw file
  • --passphrase - The passphrase for the private key file
  • --port - The TCP port number to use to connect to the target
  • --target - Alternative to setting the MIX_TARGET environment variable
  • --user-dir - The path to your ssh private key files (e.g., “~/.ssh”)

Examples

Upgrade a Raspberry Pi Zero at nerves.local:

MIX_TARGET=rpi0 mix firmware.push nerves.local

Upgrade 192.168.1.120 and explicitly pass the .fw file:

mix firmware.push 192.168.1.120 --firmware _images/rpi3/my_app.fw

Link to this section Summary

Functions

A task needs to implement run which receives a list of command line args

Link to this section Functions

A task needs to implement run which receives a list of command line args.

Callback implementation for Mix.Task.run/1.