Skip to content

kullanici0606/s3cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

s3cli

Some S3 utilities

Usage:
  s3cli [command]

Available Commands:
  completion  Generate the autocompletion script for the specified shell
  cp          Copy from/to S3
  help        Help about any command
  ls          List S3
  rm          Remove S3 files

Flags:
  -e, --endpoint string             Use alternative endpoint
  -h, --help                        help for s3cli
  -m, --max-parallel-requests int   Number of maximum requests to run in parallel (default 10)

Listing

PRE  date=2024/

# list all objects under my-bucket
$ s3cli ls s3://my-bucket/*
2024-01-04 12:35:55 +0000 UTC   10533360        date=2024/foo.txt
2024-01-05 08:44:31 +0000 UTC   0               date=2024/deneme/1.txt
2024-01-05 08:44:31 +0000 UTC   0               date=2024/deneme/2.txt
2024-01-05 08:44:31 +0000 UTC   482             date=2024/deneme/part-00000.parquet
2024-01-05 08:44:31 +0000 UTC   2259            date=2024/deneme/part-00046.parquet
2024-01-05 08:44:31 +0000 UTC   8741            date=2024/deneme/part-00053.parquet

Copying

# download everyting under the my-bucket to directory temp
$ s3cli cp s3://my-bucket/* temp/

Removing

# remove everyting under the temp directory in my-bucket
$ s3cli rm s3://my-bucket/temp/* 

# remove single obkect
$ s3cli rm s3://my-bucket/foo/bar.txt

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages