Arduino cli upload








































upload

arduino-cli upload

Upload Arduino sketches.

Synopsis

Upload Arduino sketches. This does NOT compile the sketch prior to upload.

1arduino-cli upload [flags]

Examples

1arduino-cli upload /home/user/Arduino/MySketch -p /dev/ttyACM0 -b arduino:avr:uno
2 arduino-cli upload -p 192.168.10.1 -b arduino:avr:uno --upload-field password=abc

Options

1--board-options strings List of board options separated by commas. Or can be used multiple times for multiple options.
2 --build-path string Directory containing binaries to upload.
3 --discovery-timeout duration Max time to wait for port discovery, e.g.: 30s, 1m (default 1s)
4 -b, --fqbn string Fully Qualified Board Name, e.g.: arduino:avr:uno
5 -h, --help help for upload
6 --input-dir string Directory containing binaries to upload.
7 -i, --input-file string Binary file to upload.
8 -p, --port string Upload port address, e.g.: COM3 or /dev/ttyACM2
9 -m, --profile string Sketch profile to use
10 -P, --programmer string Programmer to use, e.g: atmel_ice
11 -l, --protocol string Upload port protocol, e.g: serial
12 -F, --upload-field key=value Set a value for a field required to upload.
13 --upload-property stringArray Override an upload property with a custom value. Can be used multiple times for multiple properties.
14 -v, --verbose Optional, turns on verbose mode.
15 -t, --verify Verify uploaded binary after the upload.

Options inherited from parent commands

1--additional-urls strings Comma-separated list of additional URLs for the Boards Manager.
2 --config-dir string Sets the default data directory (Arduino CLI will look for configuration file in this directory).
3 --config-file string The custom config file (if not specified the default will be used).
4 --json Print the output in JSON format.
5 --log Print the logs on the standard output.
6 --log-file string Path to the file where logs will be written.
7 --log-format string The output format for the logs, can be: text, json (default "text")
8 --log-level string Messages with this level and above will be logged. Valid levels are: trace, debug, info, warn, error, fatal, panic (default "info")
9 --no-color Disable colored output.

SEE ALSO

In this page you can check the latest version of the Arduino CLI. You can find previous versions here.