Arduino: command not found After installing the Arduino IDE on MacOS (1.8.5), I am trying to run some commands in the terminal to flash the firmware on an Uno R3.

I have successfully connected and uploaded through the GUI, but would like to use the command line for the johnny-five API (https://github.com/rwaldron/johnny-five/wiki/Getting-Started).

However, when running 

arduino --install-library "Firmata,Servo"


I get the following error:


  -bash: command not found


How do I install the command line interface?
Instructions to installing and binding the Arduino CLI can be found at

https://github.com/arduino/arduino-cli#getting-started

Once you install the binary, copy the executable into a directory which is in your PATH environment variable (such as /usr/local/bin/).

Note: You may have to rename the binary to arduino-cli.