pm2 icon indicating copy to clipboard operation
pm2 copied to clipboard

feat: add features to stdin commands

Open qwertycxz opened this issue 9 months ago • 1 comments

  1. Add support for input commands in pm2 logs
  2. Add support for using names in pm2 attach and pm2 send
  3. Update documentation for new features
Q A
Bug fix? no
New feature? yes
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets None
License Apache 2.0
Doc PR Once merged

Usage

$ pm2 attach foo # attach and send couldn't deal with name. Now they can
$ pm2 logs --attach-input # We could send message to stdin of processes in `pm2 logs`. Below is an example to send "Lorem Ipsum" to process 0.
> 0 Lorem Ipsum

qwertycxz avatar May 08 '25 05:05 qwertycxz

I made a demo for this

qwertycxz avatar May 14 '25 09:05 qwertycxz