Overview
Development mode (connect dev) provides a streamlined workflow for connecting to multiple services defined in a project configuration file.
Project Configuration
Creating a Config File
Initialize a project configuration:pconnect.yml in your current directory:
Configuration Format
Private Connect supports multiple formats:Field Reference
| Field | Type | Required | Description |
|---|---|---|---|
name | string | Yes | Service name (must match exposed service) |
port | number | No | Local port to bind (auto-selected if omitted) |
localPort | number | No | Alias for port |
protocol | string | No | Protocol hint: tcp, http, https |
Hub Configuration
Starting Dev Mode
Basic Usage
Custom Config Path
Config File Discovery
Private Connect searches for config files in this order:Hot Reload
Automatic Service Updates
Dev mode watches for service changes and updates routes automatically:What Triggers Hot Reload
Service Added
Service Added
Service Removed
Service Removed
Hub Updates
Hub Updates
Manual Reload
Restart dev mode to force a full reload:Port Management
Automatic Port Selection
If the requested port is in use, Private Connect auto-selects an alternative:Fixed Port Assignment
Dynamic Port Configuration
Shell Integration
Environment Variables
Dev mode suggests environment variables:Shell State File
Private Connect maintains state for shell prompt integration:Shell Prompt Indicator
Add to your shell prompt to show active services:Development Workflows
Team Synchronization
Multi-Environment Setup
Monorepo Support
Advanced Configuration
Service Validation
Tunnel Creation
Graceful Cleanup
Best Practices
Version Control
Commit
pconnect.yml to share team configuration:Environment Variables
Use suggested env vars in your
.env:Port Conflicts
Let auto-selection handle conflicts:
Multiple Environments
Use separate configs per environment: