Cheatsheet: Fork Mode Cluster Mode
Cheatsheet: Fork Mode Cluster Mode
Cheatsheet: Fork Mode Cluster Mode
IO Edit
pm2 start app.js --name my-api Start and name a process pm2 start app.js -i 0 Will start maximum processes with LB
depending on available CPUs
Listing
Logs
pm2 list Display all processes status
pm2 logs [--raw] Display all processes logs in streaming
pm2 jlist Print process list in raw JSON
pm2 flush Empty all log files
pm2 prettylist Print process list in beautified JSON
pm2 reloadLogs Reload all logs
pm2 describe 0 Display all information about a specific process
Create PDF in your applications with the Pdfcrowd HTML to PDF API PDFCROWD
pm2 updatePM2 Update in memory pm2 pm2 stop 0 Stop specific process id
pm2 ping Ensure pm2 daemon has pm2 restart 0 Restart specific process id
been launched
pm2 delete 0 Will remove process from pm2 list
pm2 sendSignal SIGUSR2 my-app Send system signal to script
pm2 delete all Will remove all processes from pm2 list
pm2 start app.js --no-daemon Run pm2 daemon in the
foreground if it doesn’t exist pm2 save Save processes list to respawn at reboot
already
Create PDF in your applications with the Pdfcrowd HTML to PDF API PDFCROWD
Other CLI cheatsheets Top cheatsheets
Devhints home
Vim Vim scripting
composer Fish shell cheatsheet cheatsheet
cheatsheet cheatsheet
Create PDF in your applications with the Pdfcrowd HTML to PDF API PDFCROWD