Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

s5cmd

$ s5cmd Community Med Risk
Peak · Cloud & Infra · MIT · macos / linux / windows

Peak's s5cmd is a high-concurrency Go CLI for Amazon S3, S3-compatible object stores, and local filesystems—routinely outperforming aws s3 by an order of magnitude. Global --json and --dry-run flags plus batch s5cmd run files make it ideal for automated agents.

FCRS-1.0 Score
89 /100
Good
Medium Confidence
Zero-Friction Install
brew install s5cmd
CLI vs MCP Decision CLI Only

Parallel S3 wildcard listings and multi-gigabyte object transfers belong in s5cmd rather than passing payloads through an MCP server.

Agent-Readiness Checklist

✓ JSON Output
— Field Filtering
✓ Non-Interactive
✓ Dry-Run
— Read-Only Mode
— NO_COLOR Clean
✓ Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 23 / 25

Global --json NDJSON output, --dry-run simulation, zero interactive prompts, and batch s5cmd run make it exceptionally agent-friendly.

  • Global --json and --dry-run flags before subcommands
  • Zero TTY prompts; deterministic exit codes
Trust & Safety 21 / 25

--dry-run covers cp, mv, rm, and sync, and --no-clobber prevents overwrites, though wildcard rm is destructive.

  • Supports --dry-run and --no-clobber (-n) guards
Setup & Portability 15 / 15

Single static Go binary available via Homebrew, go install, and GitHub releases across macOS, Linux, and Windows.

  • Static Go binary with zero runtime dependencies
Utility & Efficiency 14 / 15

Up to 10x–40x faster than aws s3 for large-scale S3 operations and supports --endpoint-url for R2/MinIO.

  • Parallel worker pool (--numworkers) and wildcard batching
Maintenance & Lineage 8 / 10

Popular MIT-licensed Go project (peak/s5cmd) widely adopted in data engineering and cloud pipelines.

  • MIT-licensed peak/s5cmd repository
Docs & Verifiability 8 / 10

Clear README and s5cmd <cmd> -h documentation covering global flag ordering.

  • Comprehensive examples in GitHub README

Security, Auth & Guardrails

Auth Modes
Config File Env API Key
Credential Storage

Reads standard AWS credentials (~/.aws/credentials, AWS_PROFILE, AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_SESSION_TOKEN) and --endpoint-url.

Side Effects
Read-Only Local Write Remote Write Destructive
Cost & Quotas

MIT open-source CLI; standard S3 LIST/GET/PUT API and bandwidth charges apply.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# s5cmd Agent Rules
- Always place `--json` and `--dry-run` BEFORE the subcommand (`s5cmd --json --dry-run ...`).
- Run `s5cmd --dry-run` before any `sync`, `mv`, or `rm` with wildcards.
- Never run `s5cmd rm` with broad `*` globs without explicit user approval.

Agent-Ready Command Recipes

Safe Read-Only Queries

List S3 bucket objects as JSON
s5cmd --json ls "s3://my-bucket/prefix/*"

Streams structured JSON lines with key, size, storage class, and ETag metadata.

Preview a wildcard sync with --dry-run
s5cmd --json --dry-run sync ./dist/ s3://my-bucket/assets/

Outputs planned copy/sync operations as JSON without modifying S3 or local files.

Controlled Writes & Previews

Upload matching build artifacts non-interactively
s5cmd --json cp "./dist/*.tar.gz" s3://my-bucket/releases/

Copies compressed artifacts in parallel with structured JSON completion logs.

Strengths for Agents

  • + Global --json and --dry-run work uniformly across ls, cp, mv, rm, and sync.
  • + Extreme throughput and s5cmd run batch mode eliminate per-object process spawn overhead.
  • + Works with AWS S3, Cloudflare R2, MinIO, and GCS S3-compatible endpoints via --endpoint-url.

Caveats & Pitfalls

  • ! Global flags (--json, --dry-run) must appear before the subcommand or s5cmd rejects them.
  • ! Wildcard s5cmd rm executes immediately with no interactive confirmation prompt.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI