← 返回命令列表

Linux command

arduino 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Start

arduino

Open

arduino [sketch.ino]

Compile

arduino --verify [sketch.ino]

Upload

arduino --upload [sketch.ino]

Example

arduino --board [arduino:avr:uno] --port [/dev/ttyACM0] --upload [sketch.ino]

说明

arduino is the Arduino Integrated Development Environment (IDE) for programming Arduino microcontroller boards. It provides a code editor, compiler, and upload functionality for Arduino sketches. The command-line interface enables headless compilation and upload, useful for CI/CD pipelines and scripting.

参数

--verify
Compile sketch without uploading
--upload
Compile and upload to board
--board _fqbn_
Fully qualified board name
--port _port_
Serial port for upload
--pref _name=value_
Set preference
--save-prefs
Save preferences and exit
--get-pref _name_
Print preference value
--install-boards _package:platform_
Install board package
--install-library _name_
Install library

FAQ

What is the arduino command used for?

arduino is the Arduino Integrated Development Environment (IDE) for programming Arduino microcontroller boards. It provides a code editor, compiler, and upload functionality for Arduino sketches. The command-line interface enables headless compilation and upload, useful for CI/CD pipelines and scripting.

How do I run a basic arduino example?

Run `arduino` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does --verify do in arduino?

Compile sketch without uploading