Skip to main content
The put command transfers a file into an S3 bucket.

Usage

s3Cli put <local_path> [s3_path]

Arguments

NameRequiredDescription
local_pathYesLocal path to a file
s3_pathYesS3 bucket name
In the s3_path, don’t include prefixes such as s3://, s3a://, and s3n://. Only specify the bucket name.

Option

NameShorthandData typeDescription
--recursive-rN/AUpload directory recursively

Global options

NameShorthandData typeDescription
--help-hN/AShow help message and exit
--config-cStringPath to Hadoop’s core-site.xml file
--jceks-dir-jStringDirectory containing JCEKS files
--ranger-classpath-rStringPath to Ranger’s JAR files
--user-uStringUsername for Ranger authorization
--verbose-vN/AVerbose logging