Skip to content

arduino/arduino-cli

Repository files navigation

arduino-cli

Build Status

Arduino CLI is a tool to access all Arduino Create API from Command Line. It implements all functions provided by web version of Arduino Create.

Installation

  1. git clone this repository into a folder of your choice

  2. Add '/path/to/arduino-cli/folder' to your PATH environment variable

  3. Reload shell configuration or reboot And you’re done, now let’s see how to use the CLI.

Usage : An example

A general call is arduino [COMMAND] [options] To see the full list of commands, call arduino help [COMMAND], arduino [COMMAND] -h` or arduino [COMMAND] --help

Contribution

To contribute to this project:

  1. git clone this repository

  2. Create a new branch with the name feature-to-implement or bug-to-fix

  3. Code your contribution and push to your branch

  4. Ask a Pull Request

Tips and Tricks

Download all libraries of the current library index:

$ arduino lib search | tr "\n" " " | xargs arduino lib install

Same trick can be used on cores as well:

$ arduino core search | tr "\n" " " | xargs arduino core install

And with the download command:

$ arduino lib search | tr "\n" " " | xargs arduino lib download
$ arduino core search | tr "\n" " " | xargs arduino core download