Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "pepper-s3-cli"
version = "1.4.0"
version = "1.5.0"
edition = "2024"
description = "A simple CLI tool to manage S3 buckets and files from the terminal"
license = "MIT"
Expand Down
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,16 +56,20 @@ COMMANDS

files list <bucket_name>
Lists all the files in a bucket
files delete <bucket_name> <file_name> [-f | --force]
files delete <bucket_name> <file_name> [-f | --force] [-y | --yes]
Deletes a file in a bucket
Apply the `-f` or `--force` flag to delete all versions of a file (Not supported for R2)
Apply the `-y` or `--yes` flag to bypass confirmation
files download <bucket_name> <file_key> <download_location> [-o <override_downloaded_filename>]
Downloads a file from a bucket to a given location (optionally rename it)
files upload <bucket_name> <file_location> [-o <override_uploaded_filename>]
files upload <bucket_name> <file_location> [-o <override_uploaded_filename>] [-v | --verbose]
Uploads a file into a bucket (optionally rename it)
Apply the `-v` or `--verbose` flag for verbose output

multipart list <bucket_name>
Lists all multipart uploads in a bucket
multipart delete <bucket_name> <file_key> <timestamp_id>
Deletes a multipart upload in a bucket
multipart delete <bucket_name> <-a | --all>
Deletes all multipart upload in a bucket
```
17 changes: 13 additions & 4 deletions src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ pub enum FileCommands {

#[arg(short, long)]
force: bool,

#[arg(short, long)]
yes: bool,
},
Download {
#[arg(required = true)]
Expand All @@ -78,6 +81,9 @@ pub enum FileCommands {

#[arg(short, long)]
override_filename: Option<String>,

#[arg(short, long, default_value = "false")]
verbose: bool,
},
}

Expand All @@ -87,11 +93,14 @@ pub enum MultpartCommands {
#[arg(required = true)]
bucket: String,

#[arg(required = true)]
key: String,
#[arg(short, long)]
all: bool,

#[arg(required = true)]
timestamp_id: String,
#[arg(required_unless_present = "all", conflicts_with = "all")]
key: Option<String>,

#[arg(required_unless_present = "all", conflicts_with = "all")]
timestamp_id: Option<String>,
},
List {
#[arg(required = true)]
Expand Down
Loading
Loading