-p (set Password) switch

Specifies password.

Syntax

-p{password}
{password}
Specifies password.

Example

7z x archive.zip -psecret

extracts all files from archive.zip using password "secret".

Commands that can be used with this switch

a (Add), d (Delete), e (Extract), t (Test), u (Update), x (Extract with full paths)