ARDUINO-CLI-CONFIG-INIT(1)
π ARDUINO-CLI-CONFIG-INIT(1) β the Arduino Command Line Manual, bestie edition β¨
okay so you're here because you wanna know about arduino-cli-config-init, and honestly? iconic choice. this page lives inside the Arduino Command Line Manual (that's the (1) section vibe, iykyk) and it's gonna walk you through literally everything. no gatekeeping here π«Ά
β¨ NAME β¨
arduino-cli-config-init β writes your current configuration to a configuration file. yes, it's that simple and it slays π
π SYNOPSIS π
arduino-cli config init [flags]
that's the whole thing. short. sweet. main character energy.
πΈ DESCRIPTION πΈ
okay so what this actually does: it creates or updates the configuration file with your current configuration settings, and it drops it either in the data directory or in a custom directory you pick yourself. that's it. that's the whole job. and it does it flawlessly, no cap π
π₯ OPTIONS π₯
every single flag, right here, no crumbs left behind:
--dest-dir=""β sets where to save the configuration file. you're picking the destination folder, bestie π--dest-file=""β sets where to save the configuration file, but for the file itself. pick your path β¨-h,--help[=false]β help forinit. your little "what is happening" button π--overwrite[=false]β overwrite an existing config file. only if you mean it, because it will absolutely just replace what's already there π
π OPTIONS INHERITED FROM PARENT COMMANDS π
these are the flags you got from the parent command β the family heirlooms, if you will. still fully yours to use:
--additional-urls=[]β comma-separated list of additional URLs for the Boards Manager π--config-dir=""β sets the default data directory (Arduino CLI will look for the 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, for the data girlies π§--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. (sad, but valid π)--json,--no-colorβ wait, no, we already did those, ignore me, the actual list is right above, don't scroll back, we're good π
okay real talk: every flag above is listed exactly as it exists, no extra invented ones, no merging. if it wasn't in the original, it's not here. periodt.
π EXAMPLE π
here's exactly how it looks in the wild, copy-paste ready, verbatim:
# 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
first one: default data directory vibes. second one: you're choosing --dest-dir. third one: you're choosing the full --dest-file path. pick your fighter π¦
π SEE ALSO π
arduino-cli-config(1)β go read the parent, it's giving lore πΈ
π HISTORY π
15-Aug-2026 β auto generated by spf13/cobra π
and that's the whole page!! every flag, every example, every path, untouched, just wrapped in sparkle. you understood it, you ate it, no crumbs.
this little love letter to the terminal was auto generated by spf13/cobra, and it's from Aug 2026 β so if you're reading this from the future, hi bestie, hope your config file is thriving ππ¦β¨
π¦ where this page comes from
- ubuntu stonking: arduino-cli 1.5.1-4 Β· GPL-3.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms