Configuration keys
board_manager
- additional_urls: the URLs to any additional Boards Manager package index files needed for your boards platforms.
- enable_unsafe_install: set to
trueto allow installation of packages that do not pass the checksum test. This is considered an unsafe installation method and should be used only for development purposes.
daemon
- port: TCP port used for gRPC client connections.
directories
- data: directory used to store Boards/Library Manager index files and Boards Manager platform installations.
- downloads: directory used to stage downloaded archives during Boards/Library Manager installations.
- user: equivalent of the Arduino IDE's “sketchbook” directory. Library Manager installs to
user/libraries. 3rd-party platforms can be put inuser/hardware. - builtin.libraries: these libraries are available to all platforms with the lowest priority; equivalent to the Arduino IDE’s bundled libraries.
library
- enable_unsafe_install: set to
trueto enable use of--git-urland--zip-filewitharduino-cli lib install.
locale
- language: POSIX language identifier (e.g.,
it,it_IT.UTF-8).
logging
- file: path to the log file.
- format:
textorjson. - level: log level:
trace,debug,info,warn,error,fatal,panic.
metrics
- addr: TCP port used for metrics.
- enabled: controls whether metrics are enabled.
output
- no_color: set to
trueto disable ANSI colors.
sketch
- always_export_binaries: set to
trueto always export binaries (same as--export-binaries).
updater
- enable_notification:
falsedisables update notifications.
build_cache
- path: directory where build caches are stored.
- extra_paths: additional paths to search for precompiled artifacts.
- compilations_before_purge: number of compilations before cache purge (default 10; 0 = never purge).
- ttl: expiration time for cached build folders (default
720h).
network
- proxy: URL of proxy server.
- connection_timeout: timeout in
time.ParseDurationformat (default 60s; 0 = no limit). - cloud_api.skip_board_detection_calls: if
true, skips network calls to Arduino Cloud during board detection.
Default directories
- build_cache.path: OS-dependent default:
- Linux:
$XDG_CACHE_HOME/arduinoor~/.config/arduino - Windows:
%USERPROFILE%/AppData/Local/arduino - macOS:
~/Library/Caches/arduino
- Linux:
- directories.data:
- Linux:
~/.arduino15 - Windows:
%LOCALAPPDATA%/Arduino15 - macOS:
~/Library/Arduino15
- Linux:
- directories.downloads: default is
{directories.data}/staging. - directories.user:
- Linux:
~/Arduino - Windows:
%USERPROFILE%/Documents/Arduino - macOS:
~/Documents/Arduino
- Linux:
Configuration methods
- Command line flags
- Environment variables
- Configuration file
If a value is set by multiple methods, the highest priority wins. Unset values use defaults.
arduino-cli config dump shows all current configuration values.
Config example:
board_manager:
additional_urls: []
enable_unsafe_install: false
daemon:
port: 50051
directories:
data: ""
downloads: ""
user: ""
builtin:
libraries: ""
library:
enable_unsafe_install: false
locale: "en_US"
logging:
file: ""
format: text
level: info
metrics:
addr: ":9090"
enabled: true
output:
no_color: false
sketch:
always_export_binaries: false
updater:
enable_notification: true
build_cache:
path: ""
extra_paths: []
compilations_before_purge: 10
ttl: "720h"
network:
proxy: ""
connection_timeout: "60s"
cloud_api:
skip_board_detection_calls: false