rc - Rust S3 CLI Client
A S3-compatible command-line client written in Rust.
Features
- 🚀 High Performance - Written in Rust with async concurrent operations
- 🔧 S3 Compatible - Supports RustFS, MinIO, AWS S3, and other S3-compatible services
- 📦 Cross-Platform - Supports Linux, macOS, and Windows
- 🎨 Friendly Output - Human-readable and JSON format output
- 🔒 Secure - Secure credential storage, no sensitive data in logs
Installation
Binary Download
Download the appropriate binary for your platform from the Releases page.
Homebrew (macOS/Linux)
Cargo
Build from Source
Quick Start
Configure Aliases
# Add local S3 service
# Add AWS S3
# List all aliases
Basic Operations
# List buckets
# Create bucket
# Upload file
# Download file
# View object info
# Delete object
# Delete bucket
Advanced Operations
# Recursively copy directory
# Sync directories
# Find objects
# Generate download link
# View directory tree
Command Overview
| Command | Description |
|---|---|
alias |
Manage storage service aliases |
ls |
List buckets or objects |
mb |
Make bucket |
rb |
Remove bucket |
cp |
Copy objects |
mv |
Move objects |
rm |
Remove objects |
cat |
Display object contents |
head |
Display object header |
stat |
Display object metadata |
find |
Find objects |
diff |
Compare two locations |
mirror |
Mirror sync |
tree |
Tree view display |
share |
Generate share links |
pipe |
Upload from stdin |
completions |
Generate shell completion scripts |
Optional Commands (requires backend support)
| Command | Description |
|---|---|
version |
Manage bucket versioning |
tag |
Manage object tags |
Output Format
Human-Readable (default)
JSON Format
Shell Completion
Generate and install shell completion scripts:
Bash
# Or add to .bashrc:
# source <(rc completions bash)
Zsh
# Ensure ~/.zfunc is in your fpath (add to .zshrc):
# fpath=(~/.zfunc $fpath)
# autoload -Uz compinit && compinit
Fish
PowerShell
rc completions powershell >> $PROFILE
Configuration
Configuration file is located at ~/.config/rc/config.toml:
= 1
[]
= "human"
= "auto"
= true
[[]]
= "local"
= "http://localhost:9000"
= "accesskey"
= "secretkey"
= "us-east-1"
Exit Codes
| Code | Description |
|---|---|
| 0 | Success |
| 1 | General error |
| 2 | Usage/path error |
| 3 | Network error (retryable) |
| 4 | Authentication/permission error |
| 5 | Resource not found |
| 6 | Conflict/precondition failed |
| 7 | Feature not supported |
| 130 | Interrupted (Ctrl+C) |
Compatibility
Supported Backends
| Backend | Tier | Description |
|---|---|---|
| RustFS | Tier 1 | Fully supported |
| MinIO | Tier 2 | Fully supported |
| AWS S3 | Tier 3 | Best effort support |
| Other S3-compatible | Best Effort | No guarantee |
Minimum Rust Version
- Rust 1.92 or higher (Edition 2024)
Development
Build
Test
# Unit tests
# Integration tests (requires S3-compatible backend)
Lint
Contributing
Contributions are welcome! Please read AGENTS.md for development guidelines.
License
This project is dual-licensed under MIT or Apache-2.0. See LICENSE-MIT and LICENSE-APACHE.
Acknowledgments
- MinIO Client (mc) - Inspiration for CLI design
- aws-sdk-s3 - AWS S3 SDK for Rust