# 7-Zip CLI Action

The **7-Zip CLI Action** node allows you to execute advanced 7-Zip command-line operations. It supports both archive creation and extraction and provides more control than the standard Archive and Extract nodes.

This node requires a valid path to an existing 7-Zip binary.

The node supports common 7-Zip operations such as **Add** (archive) and **Extract**. Additional behavior can be configured using 7-Zip switches, including: `ao`, `ax`, `i`, `m`, `o`, `p`, `r`, `scs`, `t`, `v`, `w`, `x`, `y`, and `ssw`.\
The `-y` switch (assume “Yes” on all prompts) is always applied automatically.

#### Input Fields

**Command**\
Select the operation to perform: **Add** (create/update an archive) or **Extract**.

**Switch List**\
Optional comma-separated list of 7-Zip switches and their parameters.

**Archive Path**\
Absolute path to the target archive file.

**Source Path**\
Used only with **Add**. Specifies the absolute path to the file or directory that should be archived.

<figure><img src="https://1398472304-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcJYkTyk9qgh7aCR6dHIm%2Fuploads%2FHssiyPrfqLmSMJPu0JfF%2Fimage.png?alt=media&#x26;token=8c7c96e7-0b7b-4ef6-8c80-6ad4f1895897" alt="" width="348"><figcaption><p>7-Zip CLI Action</p></figcaption></figure>
