File tree Expand file tree Collapse file tree 2 files changed +8
-20
lines changed Expand file tree Collapse file tree 2 files changed +8
-20
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,10 @@ Here you can find a list of migration guides to handle breaking changes between
44
55## 0.36.0
66
7+ ### Configuration file now supports only YAML format.
8+
9+ The Arduino CLI configuration file now supports only the YAML format.
10+
711### gRPC Setting API important changes
812
913The Settings API has been heavily refactored. Here a quick recap of the new methods:
Original file line number Diff line number Diff line change @@ -97,38 +97,22 @@ $ export ARDUINO_BOARD_MANAGER_ADDITIONAL_URLS="https://downloads.arduino.cc/pac
9797
9898### Configuration file
9999
100- [ ` arduino-cli config init ` ] [ arduino-cli config init ] creates or updates a configuration file with the current
101- configuration settings.
100+ [ ` arduino-cli config init ` ] [ arduino-cli config init ] creates a new empty configuration file.
102101
103102This allows saving the options set by command line flags or environment variables. For example:
104103
105104``` sh
106105arduino-cli config init --additional-urls https://downloads.arduino.cc/packages/package_staging_index.json
107106```
108107
109- #### File name
110-
111- The configuration file must be named ` arduino-cli ` , with the appropriate file extension for the file's format.
112-
113- #### Supported formats
114-
115- ` arduino-cli config init ` creates a YAML file, however a variety of common formats are supported:
116-
117- - [ JSON]
118- - [ TOML]
119- - [ YAML]
120- - [ Java properties file]
121- - [ HCL]
122- - envfile
123- - [ INI]
124-
125108#### Locations
126109
127- Configuration files in the following locations are recognized by Arduino CLI:
110+ The default configuration file is named ` arduino-cli.yaml ` . The configuration file is searched in the following
111+ locations, in order of priority:
128112
1291131 . Location specified by the [ ` --config-file ` ] [ arduino cli command reference ] command line flag
1301141 . Location specified by the ` ARDUINO_CONFIG_FILE ` environment variable
131- 1 . Arduino CLI data directory (as configured by ` directories.data ` )
115+ 1 . Location specified by the ` ARDUINO_DIRECTORIES_DATA ` environment variable
132116
133117If multiple configuration files are present, the one highest on the above list is used. Configuration files are not
134118combined.
You can’t perform that action at this time.
0 commit comments