Git Product home page Git Product logo

ecp-cli's Introduction

ECP Command Line Client

An ECP command line client, make executable and stick it in your PATH.

First run ecp login to log in through Elixir AAI, your token will be stored automatically.

Note: On the standard OSX terminal pasting in your token might hang the process. If that happens, login to https://api.aai.ebi.ac.uk/sso, copy your token to the clipboard and run pbpaste | ecp login.

If you want to use a token from a different source, stick it in a file and use the --token (-t) flag to pass it. Or export it to the ECP_TOKEN environment variable.

Synopsis

Main commands are run as ecp *action* *resource* [*name*]. Leave out the name for get actions to get the full list of that resource. Actions are:

  • get
  • create
  • delete
  • stop (deployments only)
  • login

Resources are:

  • cred
  • param
  • config
  • app
  • deployment
  • logs
  • destroylogs
  • status

Plurals are allowed for readability purposes e.g. ecp get params to list all parameters. Use the --file (-f) flag to pass JSON data for the create action.

Examples

List all parameters available:

ecp get params

Create a cloud configuration described in config_example.json:

ecp create config -f examples/config_example.json

Delete the app named 'My App':

ecp delete app 'My App'

Get logs for deployment TSI1310559760601 using a custom tokenfile:

ecp get logs TSI1310559760601 -t tokenfile.jwt

Side notes for Mac OS X

The python3 is required. Installed it with:

brew install python3

if needed.

It is a good idea to keep the default version unchanged.

Modules requests and yaml are not installed by default. Run:

sudo pip3 install requests

and

sudo pip3 install pyyaml

as necessary.

ecp-cli's People

Contributors

erikvdbergh avatar giannidallatorre avatar famaladoss avatar susheel avatar davidyuyuan 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.