Command Line Compression Tools
There are several scenarios where is very useful to know how to compress/decompress files via command line. One example is the configuration of a continuous integration plan. We could need to compress directories to expose them as an artifact. Here is a short list of command line options for Windows and Linux and a third-party option using 7zip. Windows Built In Powershell (Windows 8+, Server 2012+) Compress Add-Type -A System.IO.Compression.FileSystem [IO.Compression.ZipFile]::CreateFromDirectory([folderPath], [zipFilePath]) folderPath: path to the folder to be compressed zipFilePath: destination zip file ...