Compress and extract files with the zip command
The /zip
command enables you to compress files into zip archives and extract contents from existing zip files. You can bundle multiple files together, reduce file sizes for easier sharing, extract compressed archives, and manage collections of files efficiently in your automations.
Required:
action
- The operation to perform (compress, extract, bundle, unzip)Optional:
files
- File names or patterns to process (defaults to finding uploaded files)output name
- Name for the created archive (defaults to archive.zip)file pattern
- Regex pattern to find files (e.g., ‘\.pdf$’ for PDFs)The command returns:
Creates a zip archive containing a single PDF file with a specific output name.
Bundles multiple files of different types into a single named archive for easy distribution.
Extracts all contents from an uploaded zip file to the default output directory for further processing.