Move an object within S3 or between S3 and local paths.
Section: High-Level S3 Commands
Move or rename an object
bash
bash
aws s3 mv s3://my-bucket/tmp/file.txt s3://my-bucket/archive/file.txtExplanation
Under the hood this is effectively copy plus delete.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing High-Level S3 Commands
List objects in a bucket
List top-level objects and prefixes in a bucket.
Sync local directory to S3
Synchronize a local directory to a bucket prefix.