<commit_before>[![logo](./logos/mobinginewlogo.png)](https://mobingi.co.jp/)

[![Build Status](https://travis-ci.org/mobingilabs/mocli.svg?branch=master)](https://travis-ci.org/mobingilabs/mocli)
[![Build status](https://ci.appveyor.com/api/projects/status/hv1y1n3oku9frxye?svg=true)](https://ci.appveyor.com/project/flowerinthenight/mocli)

# mocli

```
Command line interface for Mobingi API and services.

Endpoints based on '--runenv' option:

  dev
    - https://apidev.mobingi.com
    - https://dockereg2.labs.mobingi.com

  qa
    - https://apiqa.mobingi.com
    - https://registry.mobingi.com

  prod
    - https://api.mobingi.com
    - https://registry.mobingi.com

Usage:
  mocli [command]

Available Commands:
  creds       manage your credentials
  help        help about any command
  login       login to Mobingi API
  registry    manage your docker registry
  stack       manage your stack
  svrconf     manage your server config file
  version     print the version

Flags:
      --apiver string   API version (default "v2")
      --debug           debug mode when error
  -f, --fmt string      output format (values depends on command)
  -h, --help            help for mocli
  -n, --indent int      indent padding when fmt is 'text' or 'json' (default 4)
  -o, --out string      full file path to write the output
      --runenv string   run in environment (dev, qa, prod) (default "dev")
      --rurl string     base url for Docker Registry
      --timeout int     timeout in seconds (default 120)
      --token string    access token
      --url string      base url for API
      --verbose         verbose output

Use "mocli [command] --help" for more information about a command.
```

# Getting started

### Getting mocli

The easiest way to get mocli is to use one of the pre-built release binaries which are available for OSX, Linux, Windows.

If you want to try latest version, build mocli from the master branch. You need to have Go installed (version 1.7+ is required). Note that the master branch may be in an unstable or even broken state during development.

To build mocli, run

```
$ git clone https://github.com/mobingilabs/mocli
$ cd mocli
$ go build -v
```

Or simply

```
$ go get -u github.com/mobingilabs/mocli
```

# Usage

## Login

This is the first command you need to run to use the other commands. To login, run

```
$ mocli login --client-id=foo --client-secret=bar
```

This will create a file `credentials` under `{home}/.mocli/` folder that will contain the API token to be used for your subsequent commands.

## Stack operations
<commit_msg>[ci skip] Update readme.<commit_after>[![logo](./logos/mobinginewlogo.png)](https://mobingi.co.jp/)

[![Build Status](https://travis-ci.org/mobingilabs/mocli.svg?branch=master)](https://travis-ci.org/mobingilabs/mocli)
[![Build status](https://ci.appveyor.com/api/projects/status/hv1y1n3oku9frxye?svg=true)](https://ci.appveyor.com/project/flowerinthenight/mocli)

# mocli

```
Command line interface for Mobingi API and services.

Endpoints based on '--runenv' option:

  dev
    - https://apidev.mobingi.com
    - https://dockereg2.labs.mobingi.com

  qa
    - https://apiqa.mobingi.com
    - https://registry.mobingi.com

  prod
    - https://api.mobingi.com
    - https://registry.mobingi.com

Usage:
  mocli [command]

Available Commands:
  creds       manage your credentials
  help        help about any command
  login       login to Mobingi API
  registry    manage your docker registry
  stack       manage your stack
  svrconf     manage your server config file
  version     print the version

Flags:
      --apiver string   API version (default "v2")
      --debug           debug mode when error
  -f, --fmt string      output format (values depends on command)
  -h, --help            help for mocli
  -n, --indent int      indent padding when fmt is 'text' or 'json' (default 4)
  -o, --out string      full file path to write the output
      --runenv string   run in environment (dev, qa, prod) (default "dev")
      --rurl string     base url for Docker Registry
      --timeout int     timeout in seconds (default 120)
      --token string    access token
      --url string      base url for API
      --verbose         verbose output

Use "mocli [command] --help" for more information about a command.
```

# Getting started

### Getting mocli

The easiest way to get mocli is to use one of the pre-built release binaries which are available for OSX, Linux, and Windows.

If you want to try latest version, you can build mocli from the master branch. You need to have Go installed (version 1.7+ is required). Note that the master branch may be in an unstable or even broken state during development.

To build mocli, run

```
$ git clone https://github.com/mobingilabs/mocli
$ cd mocli
$ go build -v
```

Or simply

```
$ go get -u github.com/mobingilabs/mocli
```

# Usage

## Login

This is the first command you need to run to use the other commands. To login, run

```
$ mocli login --client-id=foo --client-secret=bar
```

This will create a file `credentials` under `{home}/.mocli/` folder that will contain the API token to be used for your subsequent commands.

## Stack operations

{'fraction_non_alphanumeric': 0.10363391655450875, 'fraction_numerical': 0.004614497212074601, 'mean_word_length': 2.8419497784342687, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 24, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '32912', 'n_tokens_mistral': 1672, 'n_tokens_neox': 1608, 'n_words': 590}