Compress

# a: Add files to archive
7z a example.zip example.txt
# With password
7z a example.zip example.txt  -p password


Decompress

# e: Extract files from archive
7z e example.zip
# With password
7z e example.zip -p password