Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including admin-cli with all npm packages installed. Try it out:

var adminCli = require("admin-cli")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

admin-cli v0.0.2

Simple command line tool to help with the installation and running of Adhara components

admin-cli

Simple command line tool to help with the installation and running of Adhara components

oclif Version

Appveyor CI Codecov Downloads/week License

* [Usage](#usage) * [Commands](#commands) # Usage After cloning/installing the tool, running any command (for ex. `./bin/run --help` or `adhara --help`) once will create a configuration template in `~/.config/adhara/config.json` if it does not yet exist. You will probably need to edit this (update the installation dir values) to get any of the commands to work. You can point to any other configuration file by setting the `ADHARA_CONFIG` environment variable. ```sh-session $ npm install -g admin-cli $ adhara COMMAND running command... $ adhara (-v|--version|version) admin-cli/0.0.2 linux-x64 node-v8.11.3 $ adhara --help [COMMAND] USAGE $ adhara COMMAND ... ``` # Commands * [`adhara help [COMMAND]`](#adhara-help-command) * [`adhara kill [COMPONENT]`](#adhara-kill-component) * [`adhara list`](#adhara-list) * [`adhara start [COMPONENT]`](#adhara-start-component) * [`adhara status [COMPONENT]`](#adhara-status-component) * [`adhara stop [COMPONENT]`](#adhara-stop-component)

adhara help [COMMAND]

display help for adhara

USAGE
  $ adhara help [COMMAND]

ARGUMENTS
  COMMAND  command to show help for

OPTIONS
  --all  see all commands in CLI

See code: @oclif/plugin-help

adhara kill [COMPONENT]

Stop and delete one or more processes running in pm2. This is equivalent to 'pm2 delete '.

USAGE
  $ adhara kill [COMPONENT]

ARGUMENTS
  COMPONENT  (all|blockchain-proxy|cbs-proxy|token-proxy|cash-tokenizer) [default: all] component to run command against

OPTIONS
  -d, --dependencies
  --version           show CLI version

DESCRIPTION
  ...
  (extra doc)

See code: src/commands/kill.js

adhara list

List all the processes running in pm2. This is equivalent to 'pm2 list'.

USAGE
  $ adhara list

OPTIONS
  --version  show CLI version

DESCRIPTION
  ...
  (extra doc)

See code: src/commands/list.js

adhara start [COMPONENT]

Start one or more processes using pm2.

USAGE
  $ adhara start [COMPONENT]

ARGUMENTS
  COMPONENT  (all|blockchain-proxy|cbs-proxy|token-proxy|cash-tokenizer) [default: all] component to run command against

OPTIONS
  -c, --config=local  configuration to use
  -d, --dependencies
  --version           show CLI version

DESCRIPTION
  ...
  (extra doc)

See code: src/commands/start.js

adhara status [COMPONENT]

Report on the repository status of one or more components. This is equivalent to 'git status'.

USAGE
  $ adhara status [COMPONENT]

ARGUMENTS
  COMPONENT  (all|blockchain-proxy|cbs-proxy|token-proxy|cash-tokenizer) [default: all] component to run command against

OPTIONS
  -d, --dependencies
  --version           show CLI version

DESCRIPTION
  ...
  (extra doc)

See code: src/commands/status.js

adhara stop [COMPONENT]

Stop one or more processes running in pm2.

USAGE
  $ adhara stop [COMPONENT]

ARGUMENTS
  COMPONENT  (all|blockchain-proxy|cbs-proxy|token-proxy|cash-tokenizer) [default: all] component to run command against

OPTIONS
  -d, --dependencies
  --version           show CLI version

DESCRIPTION
  ...
  (extra doc)

See code: src/commands/stop.js

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free