Skip to content

Latest commit

 

History

History

ioncli

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

ioncli - CLI for Ionburst

Installation

Using Go

$ go install gitlab.com/ionburst/ionburst-sdk-go/ioncli

Binaries

Please review the tagged releases page HERE

Usage

$ ioncli -h
NAME:
   ioncli - Command Line Utility for Ionburst
USAGE:
   ioncli [global options] command [command options] [arguments...]
   
COMMANDS:
   classifications, class  Manage Ionburst Classifications
   get                     Download an object from Ionburst
   put                     Upload an object to Ionburst
   delete                  Delete an object from Ionburst
   head                    Check an object from Ionburst
   help, h                 Shows a list of commands or help for one command

GLOBAL OPTIONS:
   --debug, -v  Show debug/verbose output (default: false)
   --help, -h   show help (default: false)
   --version    Show Version Information (default: false)
   
COPYRIGHT:
   (C) Ionburst Limited
   
VERSION:
   V0.0.1 [ Build: a2e2f0b | API: 1.0.0 ]

Get Classifications

$ ioncli class list
Classifications: 1

Classification
-----------------
Restricted

Upload an object

$ ioncli put <OBJECT_ID> <FILENAME>

$ ioncli put testing_file testingfile

Download an object

$ ioncli get <OBJECT_ID> <OUTPUT_FILENAME>

$ ioncli get testing_file testingfile

Delete an object

$ ioncli delete <OBJECT_ID>

$ ioncli delete testing_file

Check an object

$ ioncli head <OBJECT_ID>

$ ioncli head testing_file

Building

After downloading the SDK source to your GOPATH

$ cd $GOPATH/src/gitlab.com/ionburst/ionburst-sdk-go 
## Or where it was downloaded

$ go mod tidy

## Compile bin/ioncli for your platform

$ make compile

## Cross compile for all platforms

$ make cross-compile

## Look in the bin folder for built binaries