Skip to main content

orphelix start

Start Orphelix Kubernetes Dashboard in background mode using pm2.

Usage

Options

Examples

Basic Start

Starts on default port (3000) with default name.

Custom Port

Access at: http://orphelix.local:8080

Named Instance

Run multiple instances for different clusters. See Multi-Instance Guide.

First Run Behavior

On first run, orphelix start automatically:
  1. Checks dependencies - Verifies Node.js version and kubectl
  2. Installs packages - Runs npm install if node_modules missing
  3. Builds application - Runs npm run build:standalone if build missing
  4. Initializes database - Creates orphelix.db SQLite database
  5. Configures hostname - Prompts to set up orphelix.local (requires sudo)
  6. Starts pm2 process - Runs main app + notification worker
Subsequent runs skip steps 2-4 unless files are missing.

What Gets Started

The start command launches two pm2 processes:

1. Main Application

  • Name: orphelix (or custom name)
  • Process: Next.js standalone server
  • Port: 3000 (or custom)
  • Purpose: Web UI and API

2. Notification Worker

  • Name: orphelix-notifications (or {name}-notifications)
  • Process: Background worker
  • Purpose: Desktop notifications for critical issues

Output

Successful start shows:

Environment Variables

ORPHELIX_PORT

Set default port via environment variable:
Command flag --port overrides environment variable:

Hostname Configuration

On first run, you’ll be prompted:
  • Yes (Y): Adds entry to /etc/hosts, enables http://orphelix.local:3000
  • No (n): Skip configuration, use http://localhost:3000 only
You can configure manually later by editing /etc/hosts:
Add line:

Database Initialization

Creates SQLite database at ./orphelix.db with:
  • User settings (theme, mode, preferences)
  • GitHub integration settings
  • Cluster aliases
  • Critical issues monitoring config
  • Sidebar pins
  • Notification preferences
See Database Schema for details.

Process Management

After starting, the application runs as a daemon via pm2:
  • ✅ Runs in background (no need to keep terminal open)
  • ✅ Auto-restart on crash
  • ✅ Logs managed by pm2
  • ✅ Survives terminal close
To view running processes:

Error Handling

Port Already in Use

Solution: Use different port or kill existing process

kubectl Not Found

Solution: Install kubectl

Node Version Too Old

Solution: Upgrade Node.js

Already Running

Solution: Stop first or use different name

Post-Start Actions

After starting successfully:

1. Open in Browser

2. View Logs

3. Check Status

4. Enable Auto-Startup (Optional)

To start automatically on system boot:
  • stop - Stop the application
  • restart - Restart the application
  • status - Check if running
  • logs - View logs
  • list - List all instances
  • startup - Enable auto-startup

See Also

Multi-Instance

Run multiple instances for different clusters

Auto-Startup

Start automatically on system boot

Troubleshooting

Common issues and solutions

Configuration

Configure application settings