Create an Encrypted ZIP archive on macOS command line (cli)

zip -er FILENAME.zip FILESorFOLDERStoCOMPRESS

ex: zip -er ThisFolder.zip This\ Folder/

You will be prompted for a password and will have to verify it.

This article was updated on 2023-01-25

I'm nabeards.

I'm a full stack JavaScript developer.

I travel full time, a.k.a., Professional Wanderer, a.k.a., Digital Nomad.