s5cmd
$ s5cmd Community Med RiskPeak'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.
brew install s5cmd Parallel S3 wildcard listings and multi-gigabyte object transfers belong in s5cmd rather than passing payloads through an MCP server.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Global --json NDJSON output, --dry-run simulation, zero interactive prompts, and batch s5cmd run make it exceptionally agent-friendly.
- Global
--jsonand--dry-runflags before subcommands - Zero TTY prompts; deterministic exit codes
--dry-run covers cp, mv, rm, and sync, and --no-clobber prevents overwrites, though wildcard rm is destructive.
- Supports
--dry-runand--no-clobber(-n) guards
Single static Go binary available via Homebrew, go install, and GitHub releases across macOS, Linux, and Windows.
- Static Go binary with zero runtime dependencies
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
Popular MIT-licensed Go project (peak/s5cmd) widely adopted in data engineering and cloud pipelines.
- MIT-licensed
peak/s5cmdrepository
Clear README and s5cmd <cmd> -h documentation covering global flag ordering.
- Comprehensive examples in GitHub README
Security, Auth & Guardrails
Reads standard AWS credentials (~/.aws/credentials, AWS_PROFILE, AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_SESSION_TOKEN) and --endpoint-url.
MIT open-source CLI; standard S3 LIST/GET/PUT API and bandwidth charges apply.
# 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
s5cmd --json ls "s3://my-bucket/prefix/*"
Streams structured JSON lines with key, size, storage class, and ETag metadata.
--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
s5cmd --json cp "./dist/*.tar.gz" s3://my-bucket/releases/
Copies compressed artifacts in parallel with structured JSON completion logs.
Strengths for Agents
- + Global
--jsonand--dry-runwork uniformly acrossls,cp,mv,rm, andsync. - + Extreme throughput and
s5cmd runbatch 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 ors5cmdrejects them. - ! Wildcard
s5cmd rmexecutes immediately with no interactive confirmation prompt.