pm22

Crates.iopm22
lib.rspm22
version0.3.0
created_at2025-06-22 19:23:27.515313+00
updated_at2025-06-23 04:16:33.657061+00
descriptionA lightweight CLI tool that connects to a remote server over SSH and executes PM2 process manager commands.
homepage
repositoryhttps://github.com/tsirysndr/pm22
max_upload_size
id1721865
size128,333
Tsiry Sandratraina (tsirysndr)

documentation

README

PM22

downloads crates

pm22 is a lightweight CLI tool that connects to a remote server over SSH and executes PM2 process manager commands.

Perfect for remotely managing Node.js applications from your terminal.

Preview

✨ Features

  • SSH into any server with your private key
  • Auto install Node.js and PM2 if not found
  • Execute any PM2 command remotely (start, stop, restart, delete, logs, etc.)
  • Supports custom ports and SSH keys
  • Optional verbose output with --verbose

🚚 Installation

You can install pm22 globally using cargo:

cargo install pm22

🚀 Usage

pm22 [OPTIONS] <host> <cmd> [args]...

🔹 Arguments

Name Description
<host> Host to connect to, including username (e.g., user@your.server.com)
<cmd> PM2 command to execute (start, restart, status, logs, etc.)
[args]... Additional arguments passed to the PM2 command

🔹 Options

Flag Description Default
-p, --port <port> SSH port to connect to 22
-k, --key <path> Path to your SSH private key ~/.ssh/id_rsa
-v, --verbose Enable verbose output for debugging/logging
-h, --help Show help information
-V, --version Show version information

📄 License

MIT License © 2025 Tsiry Sandratraina

Commit count: 0

cargo fmt