CloudUploader is a command-line interface (CLI) tool designed to simplify uploading files to Azure Blob Storage. It automates the process of authentication and file transfer to Azure, providing a seamless experience for users who need a quick and efficient way to manage cloud storage.
- Easy authentication with Azure.
- Multiple files Upload directly to your Azure Blob Storage container.
- Generate shareable links for uploaded files.
- Streamlined installation process.
- Azure CLI must be installed and configured on your machine.
- An active Azure subscription, and permissions to create and manage Azure Blob Storage resources.
- Bash environment, which is available on Linux/Unix, macOS, and Windows Subsystem for Linux (WSL).
- Clone the Repository:
git clone https://github.com/Harbim001/CloudUploader-CLI-Project.git
- Navigate to the Project Directory:
cd CloudUploader-CLI-Project
- Run the Installation Script:
chmod +x installerscript.sh ./installerscript.sh
- After installation, the uploaderscript command will be available globally in your terminal.
Set up the following environment variables with your Azure Service Principal credentials for the script to use:
export AZ_APP_ID='your-app-id'
export AZ_PASSWORD='your-app-password'
export AZ_TENANT_ID='your-tenant-id'
To upload a file to Azure Blob Storage, use the following command:
./uploaderscript.sh /path/to/file
To upload multiple files to Azure Blob Storage, use the following command:
./uploaderscript.sh /path/to/file1 /path/to/file2 ...
After the upload, you can generate a shareable link by responding 'yes' when prompted.
Below is a snapshot of the tool in action:
- Authentication Issues:
- Ensure your Azure CLI is logged in
az login
and has the necessary permissions.
- Ensure your Azure CLI is logged in
- Upload Failures:
- Check if the specified file path is correct and if you have write permissions to the Azure Blob Storage container.
- Link Generation Errors:
- Verify that your storage account name and container name are correctly configured in the script.
- File not found errors:
- Ensure the paths to the files are correct and that the files exist at those locations.
Contributions to CloudUploader-CLI are welcome! If you have suggestions for improvement or have identified a bug, feel free to open an issue or submit a pull request.