Git Product home page Git Product logo

casper's Introduction

Casper - Cloud Deploy CLI

Documentation API Reference Changelog Apache V2 License

Casper is a command line tool that interacts with Cloud Deploy (Ghost project).

Cloud Deploy documentation is available here: https://docs.cloudeploy.io

Requirements

  • Python 3.5+

Installation

With pip (in a virtualenv or not)

pip install git+https://github.com/claranet/casper

Usage

Usage documentation is embedded in command.

casper --help

Configuration

Location and credentials to access the Cloud Deploy instance are prompted if needed.

Configuration details can also be specified in a .casper configuration file. The command will look for this file in the current directory and the user home directory, in this order. Also, the configuration file can be specified with the --config-file option.

The configuration file can contain many profiles, the default one is named default and is mandatory. The profile can be chosen with the --profile option.

Here is an example of a configuration file :

[default]
endpoint=https://my_instance.cloudeploy.io
username=casper

[customer_x]
endpoint=https://customer-x.cloudeploy.io
username=casper
password=XXXXXX

Any missing information for a profile will be prompted.

Enable autocompletion

Note: Bash completion is only available if a script has been installed properly, and not executed through the python command, cf. http://click.pocoo.org/5/bashcomplete/#limitations.

You also need to have the casper binary available in your $PATH.

Bash user:

_CASPER_COMPLETE=source casper >> ~/.bash_completion

Zsh user:

Put the following content to the following path ~/.zshrc

autoload bashcompinit
bashcompinit
eval "$(_CASPER_COMPLETE=source casper)"

casper's People

Contributors

apestel avatar bzspi avatar pdecat avatar shr3ps avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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.