To create zip archives with maximum compression, using the command line use following syntax:

zip archive.zip -9 *.txt

The command above will create an archive named archive.zip add all text files in current directory to the archive, and compress the archive using the maximal available compression, this is done using the integer -9.

The maximum compression option -9 also attempts compression on all files regardless of extension.