An open API service indexing awesome lists of open source software.

https://github.com/fsamin/clide

Cloud storage files management CLI
https://github.com/fsamin/clide

cli golang openstack-swift s3-storage

Last synced: 2 months ago
JSON representation

Cloud storage files management CLI

Awesome Lists containing this project

README

        

# Clide

Cloud storage files management CLI

[![GoDoc](https://img.shields.io/badge/godoc-reference-blue.svg)](http://godoc.org/github.com/fsamin/clide/lib) [![Build Status](https://travis-ci.org/fsamin/clide.svg?branch=master)](https://travis-ci.org/fsamin/clide) [![Go Report Card](https://goreportcard.com/badge/github.com/fsamin/clide)](https://goreportcard.com/report/github.com/fsamin/clide)

Supported providers:

- Openstack Swift: `swift`
- Amazon S3: `s3`

## Commands

### Download

Upload multiples containers/buckets to a single local directory with:

```bash
clide download [container 1] ... [container n]
```

- `provider` must be on the supported providers
- `destination` is the destination directory.

### Upload

Upload files to a container/bucket with:

```bash
clide upload [file 1] ... [file n]
```

- `provider` must be on the supported providers
- `destination` is the destination container/bucket. Is it doesn't exist, it will be created by default as a private container/bucket.

## About Authentication

Authentication settings can be set with command flags or environment variables. We strongly suggest to set environment variables to use `clide`easily.

### Openstack swift environment variables

```bash
OS_USERNAME
OS_PASSWORD
OS_TENANT_NAME
OS_AUTH_URL
```

### Amazon S3 environment variables

```bash
AWS_ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY
AWS_DEFAULT_REGION
```