Git Product home page Git Product logo

harbim001 / clouduploader-cli-project Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 5.0 22 KB

CloudUploader: A Bash CLI tool for easy and efficient uploading of files to Azure Blob Storage, with features for seamless authentication and shareable link generation.

Home Page: https://medium.com/@abimbolaibis/journey-from-linux-essentials-to-azure-mastery-building-the-clouduploader-cli-9d76da58bedc

License: MIT License

Shell 100.00%
azure bash-script cloud-computing linux shell-script

clouduploader-cli-project's Introduction

CloudUploader-CLI-Project

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.

Features

  • Easy authentication with Azure.
  • Multiple files Upload directly to your Azure Blob Storage container.
  • Generate shareable links for uploaded files.
  • Streamlined installation process.

Prerequisites

  • 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).

Installation

  1. Clone the Repository:
    git clone https://github.com/Harbim001/CloudUploader-CLI-Project.git
  2. Navigate to the Project Directory:
    cd CloudUploader-CLI-Project
  3. Run the Installation Script:
    chmod +x installerscript.sh
    ./installerscript.sh
    
  • After installation, the uploaderscript command will be available globally in your terminal.

Setting Environment Variables

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'

Usage

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:

Screenshot 2023-11-25 at 20 47 46 Screenshot 2023-11-29 at 23 29 06

Troubleshooting

  • Authentication Issues:
    • Ensure your Azure CLI is logged in az login and has the necessary permissions.
  • 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.

Contributing

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.

clouduploader-cli-project's People

Contributors

harbim001 avatar dbl-r13 avatar

Stargazers

Akinwale Oshodi avatar  avatar Muraino Yakubu avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.