# Command Line Switches

#### Syntax

    <switch>::= <switch_symbol><switch_characters>[<option>]
    <switch_symbol> ::= '/' | '-'

On the command line, a switch consists of a switch specifier, either a dash (-) or a forward slash (/), followed by the name of the switch. Switch names cannot be abbreviated.

Some switches take an argument after the switch name. No spaces or tabs are allowed within a switch specification. Switch names are not case sensitive, but arguments can be case sensitive.

Switch can be used in any place in command line.

See also Command Line Syntax for more details about using the command line.

## Switch quick reference

Switch | Description
--- | ---
-- | Stop switches parsing
-ad | Show dialog box in GUI version (7zg)
-ai | Include archive filenames
-an | Disable parsing of archive_name
-ao | Overwrite mode
-ax | Exclude archive filenames
-bb[0-3] | Set output log level
-bd | Disable progress indicator
-bs{o|e|p}{0|1|2} | Set output stream for output/error/progress
-bt | Show execution time statistics
-i | Include filenames
-m | Set Compression Method
-o | Set Output directory
-p | Set Password
-r | Recurse subdirectories
-sa | Set Archive name mode
-scc | Set charset for for console input/output
-scrc | Set hash function
-scs | Set charset for list files
-sdel | Delete files after including to archive
-sfx | Create SFX archive
-si | Read data from StdIn
-slp | Set Large Pages mode
-slt | Show technical information
-sni | Store NT security information
-sns | Store NTFS alternate Streams
-snc | Extract file as alternate stream, if there is ':' character in name
-snr | Replace ':' character to '_' character in paths of alternate streams
-snh | Store hard links as links (WIM and TAR formats only)
-snl | Store symbolic links as links (WIM and TAR formats only)
-so | Write data to StdOut
-spd | Disable wildcard matching for file names
-spe | Eliminate duplication of root folder for extract archive command
-spf | Use fully qualified file paths
-ssc | Set Sensitive Case mode
-ssw | Compress files open for writing
-stl | Set archive timestamp from the most recently modified file
-stm{HexMask} | Set CPU thread affinity mask (hexadecimal number).
-stx{Type} | Exclude archive type
-t | Type of archive
-u | Update options
-v | Create Volumes
-w | Set Working directory
-x | Exclude filenames
-y | Assume Yes on all queries