← All tools

PM2 Ecosystem Config Generator

Build a valid ecosystem.config.js — instances and cluster mode, memory limits, per-environment env vars, log paths — plus the CLI commands to run it. Everything runs in your browser.

exec_mode: fork (set automatically)

About this tool

PM2's ecosystem file is the reliable way to run Node apps in production — it captures instances, cluster mode, env vars, and restart policy in version control instead of in someone's shell history. This generator sets exec_mode automatically (cluster when instances is more than 1 or max, fork otherwise), keeps NODE_ENV correct in both env and env_production blocks, and omits fields left at their defaults so the file stays readable.

The output is plain JavaScript that PM2 loads with require(), so you can add logic to it later. Pair it with pm2 save and pm2 startup (both included in the CLI block) or your process list won't survive a reboot. Nothing is uploaded — the config is generated entirely in your browser.

Found this useful? 113 free, browser-only tools by Yuvrajsinh Jadav — an engineer who ships production AI systems. No account, nothing sent anywhere.