项目作者: firstthumb

项目描述 :
Azure Blob Storage Command Line Tool for uploading file and generating SAS Token
高级语言: Java
项目地址: git://github.com/firstthumb/AzureStorageCLI-Tool.git
创建时间: 2019-05-23T12:25:20Z
项目社区:https://github.com/firstthumb/AzureStorageCLI-Tool

开源协议:

下载


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.

  1. mvn clean install

Usage

  1. # prints SAS Token ( 1 min valid )
  2. java com.ekocaman.azure.AzureStorageCLI generateSAS -n {ACCOUNT_NAME} -k {ACCOUNT_KEY} -c {CONTAINER_NAME} -p {REMOTE_FILE_PATH}
  3. # uploads local file to Azure Storage with SAS Token
  4. java com.ekocaman.azure.AzureStorageCLI uploadWithSAS -n {ACCOUNT_NAME} -t {SAS_TOKEN} -c {CONTAINER_NAME} -f {LOCAL_FILE_PATH}
  5. # uploads local file to Azure Storage with Account Key
  6. java com.ekocaman.azure.AzureStorageCLI upload -n {ACCOUNT_NAME} -k {ACCOUNT_KEY} -c {CONTAINER_NAME} -f {LOCAL_FILE_PATH}
  7. # prints URL ( 1 min valid )
  8. 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