Azure Storage CLI is tool for generating Shared Access Signatures and uploading file to Azure Cloud Storage
Use the package manager maven to build the project.
mvn clean install
# 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}
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.