Skip to content

fluffybeing/libcloud-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

74 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Apache Libcloud CLI

About

Apache Libcloud is a standard Python library that abstracts away differences among multiple cloud provider APIs. Currently Libcloud has a big limitation, you can only use it with Python and you have to write code for each task, So a CLI for Libcloud will bring up lot of new possibilities to its users and will allow users and system administrators to perform commonly used operations (listing servers, rebooting servers etc.) easily via command line without writing a single line of code.

Installation

Command line client is not currently available on PyPi and so it can be installed using setup.py:

pip install -r requirements.txt
python setup.py install

Settings Credentials

Credentials can be set (in order of precedence) as environment variables in a configuration file or you can pass them manually to each command.

Default configuration file path is ~/.libcloudcli/config.ini but you can overrride it by setting the LibcloudCLI_ environment variable

Example configuration files can be found in the examples/ directory.

Usage

Note: currently only compute commands works. I am trying to add more and more commands to it.

libcloudcli <api> <resource> <action> [options]

For example:

libcloudcli compute node create  --id="hello"  --size=""

Custom Output Formatter

To specify a custom formatter, use -f option. For example:

libcloudcli compute node destroy -f json id="hello"

Available Formatters

  • table
  • csv
  • json
  • yaml
  • html

Development

Testing Lint

Running lint

tox

Links

About

Command line interface for Apache Libcloud

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages