PM2 logo
Home Pricing Contact Documentation
Monitor PM2

pm2-dev for development

    • Quick Start
    • General
      • Process Management
      • CLI Reference
      • Restart Strategies
      • Logs
      • Persistent Application
      • Configuration File
      • Cluster Mode
      • Watch & Restart
      • Memory Limit
      • PM2 as a Static Server
      • Deployment System
      • Environment Variables
      • Update PM2
    • Advanced
      • Graceful Start/Shutdown
      • Exposing RPC function
      • Exposing Metrics
      • PM2 Javascript API
      • Monitoring
      • No daemon, Multiple PM2
      • Module System
      • Source Map Support
      • Development Workflow
      • Auto Completion
    • Integrations
      • Docker Integration
      • Bun, Deno & other Runtimes
      • Use PM2 in Cloud Providers
      • Production Setup with Nginx
      • Using transpilers with PM2
      • Heroku
      • AWS Elastic Beanstalk
      • Capistrano-like Deployments
    • Resources
      • What's New
      • FAQ
      • Contributing
    • Overview
    • Quick Start
    • Server & Apps Overview
    • Application Dashboard
    • Realtime Logs
    • Notifications
    • Issue Dashboard
    • Custom Metrics
    • Custom Actions
    • Modules
    • pm2/io Reference
    • Metrics Glossary
    • FAQ
    • Overview
    • Distributed Tracing
    • Profiling
    • Alerting
    • Dashboards
    • Logs
    • Webchecks
    • Go Collector
    • Prometheus
    • Frontend Monitoring
    • On-Premise

PM2 comes with a handy development tool that allow you to start an application and restart it on file change:

# Start your application in development mode
# it print the logs and restart on file change too

# Two way of running your application :
pm2-dev start my-app.js

# or

pm2-dev my-app.js
Contribute to this page
PM2 logo
Quick start Documentation Integrations Pricing Contact
Get started
© 2014-2026 PM2. All Rights Reserved.
Terms of Use // Privacy Policy // llms.txt