user48866: 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?

user48866: 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.

48866: <p>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.</p>

<p>I have successfully connected and uploaded through the GUI, but would like to use the command line for the <code>johnny-five</code> API (<a href="https://github.com/rwaldron/johnny-five/wiki/Getting-Started" rel="nofollow noreferrer">https://github.com/rwaldron/johnny-five/wiki/Getting-Started</a>).</p>

<p>However, when running </p>

<pre><code>arduino --install-library "Firmata,Servo"
</code></pre>

<p>I get the following error:</p>

<blockquote>
  <p>-bash: command not found</p>
</blockquote>

<p>How do I install the command line interface?</p>
 48866: <p>Instructions to installing and binding the Arduino CLI can be found at</p>

<p><a href="https://github.com/arduino/arduino-cli#getting-started" rel="nofollow noreferrer">https://github.com/arduino/arduino-cli#getting-started</a></p>

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

<p>Note: You may have to rename the binary to <code>arduino-cli</code>.</p>
