Skip to content
The Mason CLI provides command line tools to help you manage your configurations in the Mason Platform.
Python Shell
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
cli
scripts
tests
.flake8
.gitignore
.gitlab-ci.yml
LICENSE
README.md
VERSION
m.ico
setup.py

README.md

Mason CLI

The Mason CLI provides command line tools to help you manage your configurations in the Mason Platform.

The full docs to get started with the Mason Platform are available here: https://docs.bymason.com/intro/ For docs on using the Mason CLI, see the setup guide here: https://docs.bymason.com/getting-started/

Using the CLI

Find the latest release and download the CLI for your platform under "Assets".

Developing the CLI

Perquisites

  1. Install Python 3
  2. Make it the default
  3. Run pip install virtualenvwrapper
  4. Run echo "source virtualenvwrapper.sh" >> ~/.bashrc

Building the CLI

  1. Clone this repo: git clone https://github.com/MasonAmerica/mason-cli.git && cd mason-cli
  2. Create a virtual environment: mkvirtualenv mason-cli
    1. Or use an existing one: workon mason-cli
  3. Install dependencies: pip install mock && pip install -e .

Testing the CLI

All behavior changes and bug fixes should come with associated test changes. While you can manually run tests with python3 setup.py test, the best way to do so is with IntelliJ's Auto Test feature which continuously tests your code as you write it. Just run all tests in the tests folder.

You can’t perform that action at this time.