Scroll to navigation

ARDUINO COMMAND LINE MANUAL(1) ARDUINO COMMAND LINE MANUAL(1)

NAME

arduino-cli-sketch-archive - Creates a zip file containing all sketch files.

SYNOPSIS

arduino-cli sketch archive [flags]

DESCRIPTION

Creates a zip file containing all sketch files.

OPTIONS

-h, --help[=false] help for archive

--include-build-dir[=false] Includes build directory in the archive.

-f, --overwrite[=false] Overwrites an already existing archive

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


debian/build/bin/arduino-cli archive
debian/build/bin/arduino-cli archive .
debian/build/bin/arduino-cli archive . MySketchArchive.zip
debian/build/bin/arduino-cli archive /home/user/Arduino/MySketch
debian/build/bin/arduino-cli archive /home/user/Arduino/MySketch /home/user/MySketchArchive.zip

SEE ALSO

arduino-cli-sketch(1)

HISTORY

5-Jul-2026 Auto generated by spf13/cobra

Jul 2026 Auto generated by spf13/cobra