Upload a directory to an S3 bucket

Caution

Copies the files that are new or changed in the directory to the bucket, overwriting objects with the same key but deleting nothing.

aws s3 sync . s3://bucket

Edit the highlighted values, then copy. They are inserted as typed, without shell escaping.

Tool
aws
Category
Cloud & IaC
Tags

Report an issue (opens in a new tab) wrong command, wrong danger level, typo… (on GitHub)

Adapted from tldr-pages (common/aws-s3.md), licensed under CC BY 4.0.

Values are inserted in the command as typed, without shell escaping.

Copy a destructive command?

This command can permanently delete data. Check every value before running it.

Keyboard shortcuts

/ or Ctrl K or ⌘ K
Focus the search
↓ or ↑
Move through the results
Enter
Copy the selected command
Tab
Edit the values of the selected command
o
Open the selected command page
f
Add or remove the selected command from favorites
Esc
Clear the search, or leave the list
?
Show this help

Values you edit carry over to the same value of the other commands, except on destructive commands, where they are always typed by hand.