Create .tar.gz archive using CLI for Windows

Published at 10 Apr 2025

Windows has it's own tar command, in order to create a .tar.gz archive we have to run the following command:

tar -cvzf archive.tar.gz input

This command will create a file named archive.tar.gz with the content of the input folder, compressed using GZip.