tfga-ebi / ecp-cli

ECP command line client

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

ECP command line client


Languages

Language:Python 100.0%