Need help with forever?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

13.4K Stars 968 Forks MIT License 683 Commits 330 Opened issues


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

Services available


Need anything else?

Contributors list


Join the chat at

Version npmnpm DownloadsBuild StatusDependenciesInline docs


A simple CLI tool for ensuring that a given script runs continuously (i.e. forever). Note that this project currently fully depends on the community for implementing fixes and new features. For new installations we encourage you to use pm2 or nodemon


  $ [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.