All apps/PM2

PM2

pm2

Production process manager for Node.js applications with a built-in load balancer.

Runs as pm2|macOS, Linux, Windows|pm2.keymetrics.io

Command form

ai-draft · 5 tasks · 12 fields

Start, restart, stop and delete managed processes. Deploy, ecosystem files, startup scripts and monitoring are left out.

Opens the form; the finished command lands at your prompt, unrun
otty gui pm2

pm2 start

Start an app
Start an appExample values, fixed in this page — nothing here reaches a terminal
Basic
Script, app name or id*
string
Process name
string
Instances
integer
Restart above memory
string
Advanced
Cron restart pattern
string
Interpreter
string
Working directory
directory
Update environment
--update-env
TasksEach one presets the form for one job
Start a script
scriptnameinstancesmax_memorycroninterpretercwdupdate_env
Start as cluster
scriptnameinstances
ParametersOnly these flags are editable in the form
Script, app name or id
string · positional 0
Process name
string
--name-n
Instances
integer
--instances-i
Restart above memory
string
--max-memory-restart100M500M1G
Cron restart pattern
string
--cron-c
Interpreter
string
--interpreterbashpythonnode
Working directory
path
--cwd
Update environment
boolean
--update-env-a

pm2 restart

Restart a process
Restart a processExample values, fixed in this page — nothing here reaches a terminal
Basic
Id, name or all*
string
Update environment
--update-env
TasksEach one presets the form for one job
Restart
targetupdate_env
ParametersOnly these flags are editable in the form
Id, name or all
string · positional 0
Update environment
boolean
--update-env-a

pm2 stop

Stop a process
Stop a processExample values, fixed in this page — nothing here reaches a terminal
Basic
Id, name or all*
string
TasksEach one presets the form for one job
Stop
target
ParametersOnly these flags are editable in the form
Id, name or all
string · positional 0

pm2 delete

Delete a process

Stops the process and removes it from the pm2 list.

Delete a processExample values, fixed in this page — nothing here reaches a terminal
Basic
Id, name or all*
string
TasksEach one presets the form for one job
Delete
target
ParametersOnly these flags are editable in the form
Id, name or all
string · positional 0
SourcesEvery flag above is checked against these
fig
completion

github.com

fig
completion

github.com

fig
completion

github.com

fig
completion

github.com

fig
completion

github.com

Before it fills your prompt, Otty checks the installed pm2 against its version. A form that does not match your version is not offered.