zip / unzip
CLICreate and extract .zip archives. Preinstalled on macOS and most Linux images.
Zip a folder or unpack a .zip without an interactive prompt
Verified commands
Executed by our harness on the platforms shown; the assertion checked the actual result, not just the exit code.
Zip a directory recursively
zip -qr out.zip projectList the files inside a .zip
unzip -l archive.zipExtract a .zip into a directory, overwriting silently
unzip -qo archive.zip -d outCommon failures (1)
- unzip hangs asking 'replace file? [y]es, [n]o...'add -o to overwrite without prompting (agents cannot answer prompts)
Install
apt
sudo apt install zip unzipHomebrew
brew install zipAgent notes
- When to use
- Exchanging archives with Windows users or web uploads
- Quick examples
zip -qr out.zip projectunzip -qo archive.zip -d out
Use from an agent
curl -s https://clihub.com/api/tools/zip | jq '.agentHints.provenRecipes[] | {task, command, verified}'Or call get_tool with slug zip on the MCP server at https://clihub.com/mcp.