← 返回
未分类 中文

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...
提供 Arduino CLI 的命令与工作流,适用于创建、编译或上传 Arduino 草图,管理开发板(列表、绑定),安装库/核心包等操作。
547895019 547895019 来源
未分类 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 474
下载
💾 19
安装
1
版本
#latest

概述

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 <search_term>

3. Core (Platform) Management

Search for a core:

arduino-cli core search <keyword>

Install a core using its ID (e.g., arduino:samd):

arduino-cli core install <core_id>

List installed cores:

arduino-cli core list

4. Sketch Workflow

Create a new sketch:

arduino-cli sketch new <SketchName>

Compile a sketch (requires the board's FQBN):

arduino-cli compile --fqbn <FQBN> <SketchName>

Example: arduino-cli compile --fqbn arduino:samd:mkr1000 MyFirstSketch

Upload a sketch to a connected board:

arduino-cli upload -p <port> --fqbn <FQBN> <SketchName>

Example: arduino-cli upload -p /dev/ttyACM0 --fqbn arduino:samd:mkr1000 MyFirstSketch

5. Library Management

Search for a library:

arduino-cli lib search <keyword>

Install a library:

arduino-cli lib install "<Library 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)

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-31 07:58 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

dev-programming

YouTube

byungkyu
使用托管OAuth集成YouTube Data API,支持搜索视频、管理播放列表、获取频道数据及评论互动,适用于用户需要时使用此技能。
★ 142 📥 42,198
dev-programming

Mcporter

steipete
使用 mcporter CLI 直接列出、配置、认证及调用 MCP 服务器/工具(支持 HTTP 或 stdio),涵盖临时服务器、配置编辑及 CLI/类型生成功能。
★ 198 📥 68,342
design-media

Qwen Video (Wan)

547895019
调用阿里云通义万相文字转视频API(如wan2.6-t2v)生成短视频。当用户要求根据文本创作视频时使用。
★ 0 📥 1,492