7zr

File archiver with a high compression ratio. Similar to 7z except that it only supports 7z files. More information: https://manned.org/7zr.

7zr a path/to/archive.7z path/to/file_or_directory

7zr a path/to/encrypted.7z -ppassword -mhe=on path/to/archive.7z

7zr x path/to/archive.7z

7zr x path/to/archive.7z -opath/to/output

7zr x path/to/archive.7z -so

7zr l path/to/archive.7z

7zr a path/to/archive.7z -mx=0|1|3|5|7|9 path/to/file_or_directory