Github url


by foreversd

foreversd /forever

A simple CLI tool for ensuring that a given script runs continuously (i.e. forever)

13.0K Stars 942 Forks Last release: about 2 months ago (3.0.0) MIT License 668 Commits 66 Releases

Available items

No Items, yet!

The developer of this repository has not created any items for sale yet. Need a bug fixed? Help with integration? A different license? Create a request here:


Join the chat at

Version npmnpm DownloadsBuild StatusDependenciesInline docs


A simple CLI tool for ensuring that a given script runs continuously (i.e. forever).


$ [sudo] npm install forever -g

Note: If you are using forever programmatically you should install forever-monitor.

$ cd /path/to/your/project $ [sudo] npm install forever-monitor


There are two ways to use forever: through the command line or by using forever in your code. Note: If you are using forever programatically you should install forever-monitor.

Command Line Usage

You can use forever to run scripts continuously (whether it is written in node.js or not).


forever start app.js

Options``` $ forever --help 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 by Id|Uid|Pid|Index|Script stopall Stop all running forever scripts restart Restart the daemon SCRIPT restartall Restart all running forever scripts list List all running forever scripts config Lists all forever user configuration set Sets the specified forever config clear Clears the specified forever config logs Lists log files for all forever processes logs

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.