rename process using pm2 programmatic api
you can do
pm2 delete id|name
pm2 start app.js -n newname
or
pm2 restart id|name -n newname
you can try this:
pm2 restart id --name newName
Example: your id is 1 , then you can type : pm2 restart 1 --name development