/install arduino-cli
Arduino CLI Skill
This skill provides guidance for using the arduino-cli to manage Arduino projects, boards, cores, and libraries from the command line.
Quick Reference
1. Configuration & Setup
Initialize the configuration file (usually in ~/.arduino15/arduino-cli.yaml):
arduino-cli config init
Update the local cache of available platforms and libraries (do this first!):
arduino-cli core update-index
2. Board Management
List connected boards to find the port and FQBN (Fully Qualified Board Name):
arduino-cli board list
List all supported boards and their FQBN strings:
arduino-cli board listall \x3Csearch_term>
3. Core (Platform) Management
Search for a core:
arduino-cli core search \x3Ckeyword>
Install a core using its ID (e.g., arduino:samd):
arduino-cli core install \x3Ccore_id>
List installed cores:
arduino-cli core list
4. Sketch Workflow
Create a new sketch:
arduino-cli sketch new \x3CSketchName>
Compile a sketch (requires the board's FQBN):
arduino-cli compile --fqbn \x3CFQBN> \x3CSketchName>
Example: arduino-cli compile --fqbn arduino:samd:mkr1000 MyFirstSketch
Upload a sketch to a connected board:
arduino-cli upload -p \x3Cport> --fqbn \x3CFQBN> \x3CSketchName>
Example: arduino-cli upload -p /dev/ttyACM0 --fqbn arduino:samd:mkr1000 MyFirstSketch
5. Library Management
Search for a library:
arduino-cli lib search \x3Ckeyword>
Install a library:
arduino-cli lib install "\x3CLibrary Name>"
Adding 3rd Party Cores (e.g., ESP8266)
To install 3rd party cores, pass the --additional-urls flag to your core commands:
arduino-cli core update-index --additional-urls https://arduino.esp8266.com/stable/package_esp8266com_index.json
arduino-cli core install esp8266:esp8266 --additional-urls https://arduino.esp8266.com/stable/package_esp8266com_index.json
(Alternatively, these URLs can be added to the board_manager.additional_urls array in arduino-cli.yaml)
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install arduino-cli - After installation, invoke the skill by name or use
/arduino-cli - Provide required inputs per the skill's parameter spec and get structured output
What is Arduino CLI?
Provides commands and workflows for Arduino CLI. Use when the user wants to create, compile, or upload Arduino sketches, manage boards (list, attach), instal... It is an AI Agent Skill for Claude Code / OpenClaw, with 183 downloads so far.
How do I install Arduino CLI?
Run "/install arduino-cli" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Arduino CLI free?
Yes, Arduino CLI is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Arduino CLI support?
Arduino CLI is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Arduino CLI?
It is built and maintained by 547895019 (@547895019); the current version is v1.0.0.