GithubHelp home page GithubHelp logo

aya / cli Goto Github PK

View Code? Open in Web Editor NEW

This project forked from billthebest/tutum-cli

0.0 2.0 0.0 1.72 MB

Command-line client for Tutum

Home Page: www.tutum.co

License: Apache License 2.0

Makefile 0.43% Python 99.57%

cli's Introduction

tutum

CLI for Tutum. Full documentation available at https://docs.tutum.co/v2/api/?shell#

Installing the CLI

In order to install the Tutum CLI, you can use pip install:

pip install tutum

For Mac OS users, you can use brew install:

brew install tutum

Now you can start using it:

$ tutum

usage: tutum [-h] [-v]
    {build,container,event,exec,image,login,node,nodecluster,push,run,service,stack,tag,volume,volumegroup,trigger,up}
    ...

Tutum's CLI

optional arguments:
  -h, --help            show this help message and exit
  -v, --version         show program's version number and exit

Tutum's CLI commands:
  {build,container,event,exec,image,login,node,nodecluster,push,run,service,stack,tag,volume,volumegroup,trigger,up}
    build               Build an image using tutum/builder
    container           Container-related operations
    event               Get real time tutum events
    exec                Run a command in a running container
    image               Image-related operations
    login               Login into Tutum
    node                Node-related operations
    nodecluster         NodeCluster-related operations
    push                Push a local image to Tutum private registry
    run                 Create and run a new service
    service             Service-related operations
    stack               Stack-related operations
    tag                 Tag-related operations
    volume              Volume-related operations
    volumegroup         VolumeGroup-related operations
    trigger             Trigger-related operations
    up                  Create and deploy a stack

Docker image

You can also install the CLI via Docker:

docker run tutum/cli -h

You will have to pass your username and API key as environment variables, as the credentials stored via tutum login will not persist by default:

docker run -it -e TUTUM_USER=username -e TUTUM_APIKEY=apikey tutum/cli

To make things easier, you might want to use an alias for it:

alias tutum="docker run -it -v /usr/bin/docker:/usr/bin/docker -v /var/run/docker.sock:/var/run/docker.sock -e TUTUM_USER=username -e TUTUM_APIKEY=apikey --rm tutum/cli"

Then, you can run commands like:

tutum service
tutum exec

Authentication

In order to manage your apps and containers running on Tutum, you need to log into Tutum in any of the following ways (will be used in this order):

  • Login using Tutum CLI or storing it directly in a configuration file in ~/.tutum:
$ tutum login
Username: admin
Password:
Login succeeded!

Your login credentials will be stored in ~/.tutum:

[auth]
user = "username"
apikey = "apikey"
  • Set the environment variables TUTUM_USER and TUTUM_APIKEY:
export TUTUM_USER=username
export TUTUM_APIKEY=apikey
  • Set the environment variables TUTUM_AUTH:

TUTUM_AUTH is the environment variable injected via API roles

Note: tutum-cli and python-tutum will pick up the auth in the following order:
  • TUTUM_AUTH
  • TUTUM_USER and TUTUM_APIKEY
  • ~/.tutum

cli's People

Contributors

bernardopericacho avatar fermayo avatar kelvinn avatar lewisjared avatar madwire avatar rayrutjes avatar tifayuki avatar

Watchers

 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.