Installation
Get PortPilot up and running in minutes.
Requirements
- Node.js v18.0.0 or higher
- npm, yarn, or pnpm
- Administrator/sudo access (for hosts file and ports 80/443)
Install via npm
Install PortPilot globally using npm:
bash
npm install -g @volchoklv/portpilotTip: Use pp as a shorthand for portpilot — e.g., pp ls, pp start myapp -d
First Time Setup
After installing, run these commands to initialize PortPilot:
1. Initialize HTTPS Support
This downloads mkcert, installs the CA certificate, and generates SSL certificates for local development:
bash
portpilot init2. Start the Proxy
The proxy runs on ports 80 and 443 to route requests to your dev servers. This requires administrator privileges:
bash
# Windows: Run terminal as Administratorportpilot proxy -d# macOS/Linux: Use sudosudo portpilot proxy -d3. Sync Hosts File
Add your registered projects to the system hosts file:
bash
# Windows: Run terminal as Administratorportpilot sync# macOS/Linux: Use sudosudo portpilot syncVerify Installation
Check that everything is set up correctly:
bash
portpilot statusThis shows your configuration, SSL status, and whether the proxy is running.