What is “arduino-cli” package ?

The Arduino CLI is a command-line interface that packages everything you’d expect from the Arduino IDE into a simple text-based tool. With the Arduino CLI you can build sketches, upload programs, download libraries or board definitions, and do much, much more.

Installation Steps:

  1. Open Terminal using Spotlight search by pressing  <command+space>.
    Type terminal and hit  Enter key.
  2. Now, run
    ruby -e “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)” < /dev/null 2> /dev/null
  3. Install arduino-cli using brew
    brew instal arduino-cli

arduino-cli is ready to use now!