aws / aws/aws-cli

Add short option parameters to `aws s3` commands

Open
#9,972 2 comments 1 reaction 0 assignees View on GitHub
feature-request p3 s3
Dominant language
Python
Stars
17.3k
Forks
4.6k
Avg merge
1d 2h
Merged PRs (30d)
13

Description

### Describe the feature

Add short option parameters to the object-based `aws s3` commands as aliases to the long option parameters.

In addition, short option combining (ie `-rsn` is equivalent to `-r -s -n`) needs to be verified as working.

I don't use auto-complete because I need to minimise shell start-up time. I don't use auto-prompt mode as it is much slower than entering the arguments in fully for me.

### Use Case

This will reduce the friction when typing these commands many times in the command line.

### Proposed Solution

| alias | existing | commands |
|-------|----------|----------|
| `-r` | `--recursive` | `cp`, `ls`, `mv`, `rm` |
| `-H` [^1] | `--human-readable` | `ls` |
| `-s` | `--summarize` | `ls` |
| `-n` | `--dryrun` | `cp`, `mv`, `rm`, `sync` |

Aliases that I think are optional:

| alias | existing | commands |
|-------|----------|----------|
| `-q` | `--quiet` | `cp`, `mv`, `rm` |
| `-i` | `--include` | `cp`, `mv`, `rm` |
| `-e` | `--exclude` | `cp`, `mv`, `rm` |

I think all other parameters don't need short aliases.

[^1]: not `-h` as that is used often as an alias for `--help` in many apps

### Other Information

Former requests:

* #1753: closed due to lack of +1s
* #1602: closed as duplicate of #1753

### Acknowledgements

- [x] I may be able to implement this feature request
- [ ] This feature might incur a breaking change

### CLI version used

2.32.29

### Environment details (OS name and version, etc.)

Python 3.13.11; Ubuntu 24.04.3

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.