Skip to content

Latest commit

 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Azure Blob CLI

A simple command-line interface tool for listing blobs in an Azure Storage container. It uses the AzureStorageSwift library for blob interaction.

Features

  • List blobs in an Azure Storage container using a SAS URL

Prerequisites

  • macOS 11.0 or later
  • Swift 5.7 or later
  • Xcode (for development)

Installation

  1. Clone the repository:
git clone <repository-url>
cd AzureBlobCLI
  1. Update the placeholder in main.swift with your Azure storage SAS url
let sasUrl = "https://sample.blob.core.windows.net/shared?sp=racwdl&st=2025-02-17T20:21:43Z&se=2026-01-02T04:21:43Z&spr=https&sv=2022-11-02&sr=c&sig=xxx"
  1. Build the project:
swift build

Usage

Run the CLI tool:

swift run

The tool will list all blobs in the specified container.

Example Output

Attempting to connect to Azure Blob Storage...
     Storage Account: sample.blob.core.windows.net
     Container:       myfiles
Initializing az storage container...
Blobs in container:
 - document1.pdf
 - image.jpg
 - data.json

Dependencies

Development

The project is structured as follows:

  • Package.swift - Swift package manifest
  • Sources/AzureBlobCLI/main.swift - CLI entry point
  • Sources/AzureBlobLister/AzureBlobLister.swift - Core functionality

About

Azure Blob Storage CLI - A Swift command-line tool for listing blobs using SAS authentication. Built on the AzureStorageSwift library.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages