pm2


1. Start a New Application

pm2 start app.js

2. Start Multiple Applications

pm2 start app1.js app2.js app3.js

3. Start an Application with Environment Variables

pm2 start app.js --env production

4. Start an Application with a Custom Name

pm2 start app.js --name my-app

5. Start an Application in Cluster Mode

pm2 start app.js -i 4

6. Start an Application with a Specific Port

pm2 start app.js -p 3000

7. Start an Application with Auto-Restart

pm2 start app.js --watch

8. Start an Application with Cron Scheduling

pm2 start app.js --cron "0 0 * * *"

9. Start an Application with Log File

pm2 start app.js --log /path/to/log.txt

10. Stop an Application

11. Stop All Applications

12. Restart an Application

13. Restart All Applications

14. Reload an Application (without Restart)

15. Reload All Applications

16. Delete an Application

17. List All Running Applications

18. Show Application Status

19. Get Application Logs

20. Get Application Metrics

21. Create a Process File

22. Load a Process File

23. Update an Application

24. Scale an Application

25. Manage Applications via API