Skip to main content

Orphelix CLI

The Orphelix CLI provides a convenient way to manage your Kubernetes dashboard as a background service using pm2. It handles installation, configuration, and lifecycle management with simple commands.

Key Features

  • πŸš€ One-Command Setup - Auto-installs dependencies, builds, and configures on first run
  • πŸ”„ Background Execution - Runs as a daemon via pm2, no need to keep terminal open
  • 🌐 Custom Hostname - Configures orphelix.local for easier access
  • πŸ’Ύ SQLite Database - Persistent storage for settings and preferences
  • πŸ”” Desktop Notifications - Get alerts for critical Kubernetes issues
  • πŸ“¦ Multi-Instance Support - Run multiple instances for different clusters
  • πŸ”„ Auto-Update - Update to latest version from GitHub with automatic backup
  • πŸ’Ύ Backup & Restore - Easy database backup and restore functionality
  • πŸš€ Auto-Startup - Optional system boot auto-start

Quick Start

# Install globally via npm
git clone https://github.com/corapoid/orphelix.git && cd orphelix/app

# Start Orphelix (first run will auto-install and configure)
orphelix start

# Open in browser
orphelix open

# View logs
orphelix logs

# Stop the application
orphelix stop

First Run Setup

On first run, orphelix start will automatically:
  1. βœ… Check and install npm dependencies
  2. βœ… Build standalone Next.js application
  3. βœ… Configure orphelix.local hostname (requires sudo)
  4. βœ… Initialize SQLite database
  5. βœ… Start application in background via pm2
  6. βœ… Start notification worker for desktop alerts
You’ll be prompted once for sudo password to configure /etc/hosts.

Access URLs

After starting, access Orphelix at:
  • Custom hostname: http://orphelix.local:3000
  • Standard localhost: http://localhost:3000

Architecture

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚              Orphelix CLI (orphelix)                β”‚
β”‚                                                      β”‚
β”‚  Commands: start, stop, restart, logs, status, etc. β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                      β”‚
                      β–Ό
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚                  PM2 Process Manager                 β”‚
β”‚                                                      β”‚
β”‚  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”    β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚
β”‚  β”‚  orphelix        β”‚    β”‚ orphelix-notificationsβ”‚ β”‚
β”‚  β”‚  (main app)      β”‚    β”‚ (worker)              β”‚ β”‚
β”‚  β”‚  Port: 3000      β”‚    β”‚                       β”‚ β”‚
β”‚  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜    β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                      β”‚
                      β–Ό
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚               orphelix.db (SQLite)                   β”‚
β”‚                                                      β”‚
β”‚  - User settings                                     β”‚
β”‚  - GitHub configuration                              β”‚
β”‚  - Cluster aliases                                   β”‚
β”‚  - Notification preferences                          β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Command Categories

Process Management

Start, stop, restart, and monitor the application
  • start - Start Orphelix in background
  • stop - Stop Orphelix
  • restart - Restart Orphelix
  • status - Check if running
  • logs - View real-time logs
  • list - List all running instances
  • delete - Remove from pm2

Information

Get information about the application
  • version - Show version and check for updates
  • info - Show detailed application info
  • doctor - Run health checks

Backup & Configuration

Manage data and settings

Development

Tools for developers
  • dev - Start in development mode
  • debug - Start with debugger
  • test - Run tests
  • clean - Clean caches and logs

Maintenance

System maintenance and updates

Global Options

These options work with multiple commands:
  • --port, -p - Specify custom port (default: 3000)
  • --name, -n - Instance name for multi-instance support

Environment Variables

  • ORPHELIX_PORT - Set default port (can be overridden with --port)

Next Steps