We need this to eventually be able to colorize the output for JSON TOML, etc. Change all references of print to emitter.publish. We also removed the subcommand command. Need to do a `make clean env` after this change.
DCOS Command Line Interface
The DCOS Command Line Interface (CLI) is a command line utility supporting several commands to provide an user friendly yet powerful way to manage DCOS installations.
Dependencies
- git must be installed and on the system path in order to fetch packages from git sources.
Setup
Make sure you meet requirements for installing packages
Clone git repo for the dcos cli:
git clone git@github.com:mesosphere/dcos-cli.gitChange directory to the repo directory:
cd dcos-cliMake sure that you have virtualenv installed. If not type:
sudo pip install virtualenvCreate a virtualenv for the dcos cli project:
make env
Configure Development Environment
Activate the virtualenv:
source env/bin/activateExport DCOS_PATH:
export DCOS_PATH=$(pwd)/envExport DCOS_CONFIG:
export DCOS_CONFIG=$(pwd)/tests/data/Dcos.toml
Running POC
Get started by calling DCOS CLI help:
dcos --help
Running Tests:
Run all DCOS CLI tests (make sure that you are running Zookeeper, Mesos and Marathon):
toxList all of the supported test environments:
tox --listenvsRun a specific set of tests:
tox -e <testenv>