Installation

AWS CLI
# macOS/Linux
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
unzip awscliv2.zip
sudo ./aws/install

# Windows (PowerShell)
msiexec.exe /i https://awscli.amazonaws.com/AWSCLIV2.msi

Configure

Configure Profile
aws configure --profile v2capsule

# When prompted:
# AWS Access Key ID: YOUR_ACCESS_KEY
# AWS Secret Access Key: YOUR_SECRET_KEY
# Default region name: us-east-1
# Default output format: json

Common Operations

Upload a File
aws s3 cp myfile.txt s3://my-bucket/myfile.txt \
  --endpoint-url http://your-server-ip:3000 \
  --profile v2capsule
Download a File
aws s3 cp s3://my-bucket/myfile.txt ./myfile.txt \
  --endpoint-url http://your-server-ip:3000 \
  --profile v2capsule
List Objects
aws s3 ls s3://my-bucket/ \
  --endpoint-url http://your-server-ip:3000 \
  --profile v2capsule
Delete a File
aws s3 rm s3://my-bucket/myfile.txt \
  --endpoint-url http://your-server-ip:3000 \
  --profile v2capsule