table of contents
| ARDUINO COMMAND LINE MANUAL(1) | ARDUINO COMMAND LINE MANUAL(1) |
NAME¶
arduino-cli-config-init - Writes current configuration to a configuration file.
SYNOPSIS¶
arduino-cli config init [flags]
DESCRIPTION¶
Creates or updates the configuration file in the data directory or custom directory with the current configuration settings.
OPTIONS¶
--dest-dir="" Sets where to save the configuration file.
--dest-file="" Sets where to save the configuration file.
-h, --help[=false] help for init
--overwrite[=false] Overwrite existing config file.
OPTIONS INHERITED FROM PARENT COMMANDS¶
--additional-urls=[] Comma-separated list of additional URLs for the Boards Manager.
--config-dir="" Sets the default data directory (Arduino CLI will look for configuration file in this directory).
--config-file="" The custom config file (if not specified the default will be used).
--json[=false] Print the output in JSON format.
--log[=false] Print the logs on the standard output.
--log-file="" Path to the file where logs will be written.
--log-format="text" The output format for the logs, can be: text, json
--log-level="info" Messages with this level and above will be logged. Valid levels are: trace, debug, info, warn, error, fatal, panic
--no-color[=false] Disable colored output.
EXAMPLE¶
# Writes current configuration to the configuration file in the data directory.
debian/build/bin/arduino-cli config init
debian/build/bin/arduino-cli config init --dest-dir /home/user/MyDirectory
debian/build/bin/arduino-cli config init --dest-file /home/user/MyDirectory/my_settings.yaml
SEE ALSO¶
HISTORY¶
15-Aug-2026 Auto generated by spf13/cobra
| Aug 2026 | Auto generated by spf13/cobra |