Created
May 15, 2011 05:48
-
-
Save indexzero/972906 to your computer and use it in GitHub Desktop.
Sample of the output from CLI programs I wrote in node.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
usage: forever [action] [options] SCRIPT [script-options] | |
Monitors the script specified in the current process or as a daemon | |
actions: | |
start Start SCRIPT as a daemon | |
stop Stop the daemon SCRIPT | |
stopall Stop all running forever scripts | |
restart Restart the daemon SCRIPT | |
list List all running forever scripts | |
config Lists all forever user configuration | |
set <key> <val> Sets the specified forever config <key> | |
clear <key> Clears the specified forever config <key> | |
cleanlogs [CAREFUL] Deletes all historical forever log files | |
options: | |
-m MAX Only run the specified script MAX times | |
-l LOGFILE Logs the forever output to LOGFILE | |
-o OUTFILE Logs stdout from child script to OUTFILE | |
-e ERRFILE Logs stderr from child script to ERRFILE | |
-d SOURCEDIR The source directory for which SCRIPT is relative to | |
-p PATH Base path for all forever related files (pid files, etc.) | |
-c COMMAND COMMAND to execute (defaults to node) | |
--pidfile The pid file | |
-a, --append Append logs | |
-v, --verbose Turns on the verbose messages from Forever | |
-s, --silent Run the child script silencing stdout and stderr | |
-h, --help You're staring at it | |
[Long Running Process] | |
The forever process will continue to run outputting log messages to the console. | |
ex. forever -o out.log -e err.log my-script.js | |
[Daemon] | |
The forever process will run as a daemon which will make the target process start | |
in the background. This is extremely useful for remote starting simple node.js scripts | |
without using nohup. It is recommended to run start with -o -l, & -e. | |
ex. forever start -l forever.log -o out.log -e err.log my-daemon.js | |
forever stop my-daemon.js |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
usage: haibu-server [options] | |
Starts the haibu API server responsible for spawning node.js applications. | |
options: | |
-a IP Address that you want the server to bind to [dynamic] | |
-p Port that you want the server to run on [9002] | |
-e [env] The environment to the specified command in [development] | |
--logger Use the haibu logger plugin [true] | |
--chroot Deploy drones using chroot | |
-s --silent Suppress the log messages from the output | |
-h, --help You're staring at it |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
usage: require-analyzer [options] [directory] | |
Analyzes the node.js requirements for the target directory. If no directory | |
is supplied then the current directory is used | |
options: | |
--update Update versions for existing dependencies | |
-h, --help You're staring at it |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment