Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dcos/dcos-cli
The command line for DC/OS.
https://github.com/dcos/dcos-cli
cli dcos dcos-cli dcos-ux-guild golang
Last synced: 7 days ago
JSON representation
The command line for DC/OS.
- Host: GitHub
- URL: https://github.com/dcos/dcos-cli
- Owner: dcos
- License: apache-2.0
- Created: 2014-11-14T19:11:48.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2023-05-22T21:58:06.000Z (over 1 year ago)
- Last Synced: 2025-01-15T04:32:19.609Z (14 days ago)
- Topics: cli, dcos, dcos-cli, dcos-ux-guild, golang
- Language: Go
- Homepage: https://docs.d2iq.com/mesosphere/dcos/latest/cli/
- Size: 30.4 MB
- Stars: 224
- Watchers: 78
- Forks: 117
- Open Issues: 16
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Codeowners: CODEOWNERS
Awesome Lists containing this project
README
# DC/OS Command Line Interface [![Build Status](https://jenkins.mesosphere.com/service/jenkins/buildStatus/icon?job=public-dcos-cluster-ops/mesosphere-dcos-cli/integration-tests)](https://jenkins.mesosphere.com/service/jenkins/job/public-dcos-cluster-ops/job/mesosphere-dcos-cli/job/integration-tests/)
The DC/OS Command Line Interface (CLI) is a cross-platform command line
utility that provides a user-friendly yet powerful way to manage DC/OS
clusters.## Installation and usage
If you're a **user** of DC/OS, please follow the [installation
instructions](https://docs.d2iq.com/mesosphere/dcos/latest/cli/install/). Otherwise,
follow the instructions below to set up your development environment.Detailed help and usage information is available through the dcos help
command and for specific subcommands through `dcos --help`.Additional documentation for the CLI and for the DC/OS in general is
available in the [DC/OS docs](https://dcos.io/docs/).## Development setup
### Requirements
1. [git](http://git-scm.com) must be installed to download the source
code for the DC/OS CLI.
2. [go](https://golang.org/dl/) 1.12+ or Docker.
3. [win-bash](https://sourceforge.net/projects/win-bash/files/shell-complete/latest)
must be installed if you are using Windows in order to run setup scripts
from the Makefile.### Instructions
1. Clone git repo for the dcos cli:
git clone [email protected]:dcos/dcos-cli.git
2. Change directory to the repo directory:
cd dcos-cli
3. Build the binary (using Docker):
make
or Using Go (1.12+):
export NO_DOCKER=1
make## Using the DC/OS CLI
The DC/OS CLI will be built in the directory `build//`.
## Running tests
### Unit tests
make test
### Integration tests
You need to have a running DC/OS cluster in order to run the integration tests.
Using a Python virtual environment is recommended.export DCOS_TEST_DEFAULT_CLUSTER_USERNAME=
export DCOS_TEST_DEFAULT_CLUSTER_PASSWORD=
export DCOS_TEST_DEFAULT_CLUSTER_HOST=
cd tests
pip install -r requirements.txt
pytest integration## Releasing
Releasing a new version of the DC/OS CLI is done through an
[automated Jenkins
build](https://jenkins.mesosphere.com/service/jenkins/job/public-dcos-cluster-ops/job/mesosphere-dcos-cli/job/release/)
which is triggered automatically for new tags and on pushes to master.The latest binaries (built from the latest tag) are published to:
- https://downloads.dcos.io/cli/releases/binaries/dcos/linux/x86-64/latest/dcos
- https://downloads.dcos.io/cli/releases/binaries/dcos/darwin/x86-64/latest/dcos
- https://downloads.dcos.io/cli/releases/binaries/dcos/windows/x86-64/latest/dcos.exeThe testing binaries (built from the master branch continuously) are published to:
- https://downloads.dcos.io/cli/testing/binaries/dcos/linux/x86-64/master/dcos
- https://downloads.dcos.io/cli/testing/binaries/dcos/darwin/x86-64/master/dcos
- https://downloads.dcos.io/cli/testing/binaries/dcos/windows/x86-64/master/dcos.exeThe release proces is described [here](https://github.com/dcos/dcos-cli/blob/master/design/release.md#release-process)
## Contributing
Contributions are always welcome! Please refer to our [contributing guidelines](CONTRIBUTING.md).