CLI for interacting with Mantis clusters.
- node 10
- yarn
- oclif
- oclif-dev
$ npm install -g yarn
$ npm install -g oclif
$ npm install -g @oclif/dev-cli$ yarn$ yarn testFor local development, you can run the CLI by calling:
$ bin/runOtherwise you can also link it via yarn and run the mantis command:
$ yarn link
$ mantis$ oclif-dev pack$ oclif-dev pack:macosA .pkg file will be placed into dist/. On installation, the mantis binary will be
placed onto the PATH and its files in /usr/local/lib.
$ mantis --help
$ mantis aws:bootstrap --help
$ mantis aws:configure --help
# etc ...Example output:
$ mantis aws:bootstrap --help
bootstraps a Mantis cluster in AWS
USAGE
$ mantis aws:bootstrap
OPTIONS
-r, --region=region AWS region
-y, --confirm Autoconfirms commands
DESCRIPTION
This command will automatically orchestrate the creation of all
AWS and Mantis dependencies in AWS. Specifically, it will create:
1. AWS key pair
2. Default VPC
3. Security groups
4. Single Zookeeper EC2 instance backed by EBS volume
5. Single Mesos Master EC2 instance backed by EBS volume
6. Single Mesos Slave EC2 instance backed by EBS volume
7. Single Mantis Control Plane EC2 instance backed by EBS volume
This command will also set up connection strings and other properties
for Mantis.
Once this command finishes, you will be able to submit streaming jobs into
your Mantis cluster via HTTP requests to the Mantis Control Plane.
== IMPORTANT ==
As a pre-requisite, this command requires that you set up your AWS credentials.
See `mantis aws:configure --help` for more details.$ mantis commands$ mantis aws:configure$ mantis aws:bootstrap$ mantis aws:teardown