← 返回
未分类

Zip Tool

Package and compress files into ZIP archives with configurable compression levels, password protection, directory recursion, and cross-platform compatibility...
将文件打包压缩为 ZIP 档案,支持可配置的压缩级别、密码保护、目录递归以及跨平台兼容性。
dinghaibin dinghaibin 来源
未分类 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 286
下载
💾 0
安装
1
版本
#latest

概述

ZIP Tool — Archive Manager

Create, update, list, and extract ZIP archives. Supports recursive directory inclusion, compression level control, password encryption, and cross-platform compatibility.

Quick Start

# Create a ZIP archive
zip-tool -r archive.zip ./documents/

# List archive contents
zip-tool -l archive.zip

# Extract archive
zip-tool -x archive.zip -d ./output/

Usage

zip-tool [OPTIONS] ARCHIVE [FILES...]

Options:
  -r, --recursive      Recursively include directories
  -l, --list           List contents of an archive
  -x, --extract        Extract an archive
  -d, --delete PATTERN Remove entries matching pattern
  -u, --update         Update existing entries or add new ones
  -P, --password PASS  Protect archive with password
  -c, --compress N     Compression level (0-9, default: 6)
  -o, --output DIR     Extract destination directory
  --overwrite          Overwrite existing files when extracting
  --json               Output archive metadata as JSON

Examples

# Create a ZIP with directory
zip-tool -r backup.zip ./my-project/

# Create with maximum compression
zip-tool -r -c 9 archive.zip ./data/

# List archive contents
zip-tool -l backup.zip

# Extract to specific directory
zip-tool -x archive.zip -d ./restored/

# Password-protected archive
zip-tool -r -P secret123 confidential.zip ./docs/

# Update an existing archive
zip-tool -u archive.zip ./new-file.txt

# Delete entries matching pattern
zip-tool -d "*.tmp" archive.zip

# Archive metadata as JSON
zip-tool -l backup.zip --json

Features

  • Create/extract/update — full archive lifecycle
  • Directory recursion — pack entire folder trees
  • Compression levels — 0 (store) to 9 (maximum)
  • Password encryption — AES-256 and traditional ZIP encryption
  • List contents — inspect archives without extracting
  • Pattern deletion — selective entry removal
  • Cross-platform — compatible with all major OS ZIP tools
  • JSON output — structured archive metadata

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-21 14:25 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

dev-programming

CodeConductor.ai

larsonreever
AI驱动平台,提供快速全栈开发、智能体、工作流自动化及低代码AI集成的可扩展产品创建。
★ 72 📥 181,902
dev-programming

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 678 📥 327,598
it-ops-security

Schedule Task

dinghaibin
在 Linux/Unix 系统上调度和运行周期性任务。适用于设置 cron 作业、定时备份、周期性数据同步、自动报告等场景。
★ 0 📥 453