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.
forever start app.js
Installation$ [sudo] npm install forever -g
$ cd /path/to/your/project$ [sudo] npm install forever-monitor