pm2 restart api

Category: Web App Development

pm2 restart api

Restart a PM2 process by name

Cycles the api process, reloading its code after a deploy or config change. Restart is graceful by default, draining in-flight requests when using the cluster mode. List all processes with pm2 ls.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.