The API client for ummon
This package comprises a command line tool as well as a Node.js client library for communicating with the HTTP API of ummon-server.
npm install -g ummon
$ ummon --helpCommands:collection Set the default settings for a particular collectionconfig Get the server status as well as control various aspects of the serverlog Show recent log output. Filter logs by using --collection, --task or --run (only one!)pulse Ping server status for a queue/worker numbersqueue Show or clear the queuestatus Get the server status as well as control various aspects of the servertask Show and modify the configuration for a taskhelp <sub-command> Show the --help for a specific command
url: The url where
ummon-serveris accepting connections
retries: The number of times
timeout: Time to wait
You can save all of the above settings in
~/.ummonrc so you don't have to type them in every time.
$ cat ~/.ummonrc
defaultEnv=development # The default environment. Recuded the need to type --env development[development] # As of now, environments are the only sectionsurl=http://localhost:8888username=superusernamepassword=science[production]url=http://18.104.22.168:8080username=nameOfUserpassword=superTopSecretPassword
Warning! Obviously, if you include your password in this file, it will be saved in clear text. Use appropriate caution.
See generated docs at http://punkave.github.io/ummon/.