Skip to content

Azure Blob Storage Command Line Tool for uploading file and generating SAS Token

Notifications You must be signed in to change notification settings

firstthumb/AzureStorageCLI-Tool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Azure Storage CLI

Azure Storage CLI is tool for generating Shared Access Signatures and uploading file to Azure Cloud Storage

Installation

Use the package manager maven to build the project.

mvn clean install

Usage

# prints SAS Token ( 1 min valid )
java com.ekocaman.azure.AzureStorageCLI generateSAS -n {ACCOUNT_NAME} -k {ACCOUNT_KEY} -c {CONTAINER_NAME} -p {REMOTE_FILE_PATH}

# uploads local file to Azure Storage with SAS Token
java com.ekocaman.azure.AzureStorageCLI uploadWithSAS -n {ACCOUNT_NAME} -t {SAS_TOKEN} -c {CONTAINER_NAME} -f {LOCAL_FILE_PATH}

# uploads local file to Azure Storage with Account Key
java com.ekocaman.azure.AzureStorageCLI upload -n {ACCOUNT_NAME} -k {ACCOUNT_KEY} -c {CONTAINER_NAME} -f {LOCAL_FILE_PATH}

# prints URL ( 1 min valid )
java com.ekocaman.azure.AzureStorageCLI generateURL -n {ACCOUNT_NAME} -k {ACCOUNT_KEY} -c {CONTAINER_NAME} -p {REMOTE_FILE_PATH}

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

About

Azure Blob Storage Command Line Tool for uploading file and generating SAS Token

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages