Closed
Description
Describe the request
Is it possible to support setting the configuration file using an environment variable?
Currently it's possible to set the config file through multiple ways, like --config-file
and by auto checking the current and parent directories. However, using an environment variable to ensure all the upcoming commands will be using the correct config file would ensure consistency and confidence in the result.
Note, as a current workaround, I'm shadowing the arduino-cli command using the following bash function, which indeed works, but it's not a clean solution.
arduino-cli() {
if [ -n "$ARDUINO_CONFIG" ]; then
# ARDUINO_CONFIG is set, use it with --config-file
command arduino-cli --config-file "${ARDUINO_CONFIG}" "$@"
else
# ARDUINO_CONFIG is not set, call arduino-cli normally
command arduino-cli "$@"
fi
}
Describe the current behavior
No environment variable are mentioned in the documentation that would set the --config-file
Arduino CLI version
Version: 0.34.2
Operating system
Linux
Operating system version
Any
Additional context
No response
Issue checklist
- I searched for previous requests in the issue tracker
- I verified the feature was still missing when using the nightly build
- My request contains all necessary details