Skip to content
| Marketplace
Sign in
Visual Studio Code>Linters>PortCTL - Stop guessing what's running on your machine.New to Visual Studio Code? Get it now.
PortCTL - Stop guessing what's running on your machine.

PortCTL - Stop guessing what's running on your machine.

abhishekayu

|
2 installs
| (0) | Free
portctl is a fast, cross-platform CLI to inspect ports, understand processes, and recover broken dev environments - built for real-world development workflows.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

PortCTL - Stop guessing what's running on your machine.

portctl is a fast, cross-platform CLI to inspect ports, understand processes, and recover broken dev environments -- built for real-world development workflows.

See every port, kill rogue processes, manage services, and fix conflicts -- all from the VS Code sidebar.


Features

Sidebar Port Dashboard

Instantly see every listening port on your machine with process name, PID, and service status -- no terminal needed.

Project-Aware Service Management

Detects .portctl.toml in your workspace and shows your services (frontend, backend, database) with live status indicators:

  • Running -- green dot
  • Stopped -- red dot
  • Conflict -- yellow warning

One-Click Actions

Action What it does
Start All Launch all services from .portctl.toml
Stop All Gracefully stop all project services
Fix Port Conflicts Auto-detect and resolve port collisions
Switch Profile Switch between dev/staging/production port configs
Reset to Default Restore original port assignments
Preflight Check Verify all ports are free before starting
Doctor Diagnose common port and service issues
Scan Dev Ports Find all development server ports
Group by Role Organize ports by frontend/backend/database
Interactive TUI Full terminal UI for advanced management
History View port usage history
Registry Check Check ports against known service registry
CI Check Validate config for CI/CD pipelines
Update CLI Auto-update portctl binary from GitHub

Smart Terminal Integration

  • Single shared terminal for all actions
  • Automatic cleanup when switching between commands
  • Interactive TUI support with graceful exit handling

Auto-Install & Update

Extension automatically detects if portctl CLI is installed. If not, it prompts to download the correct binary for your platform (macOS/Linux/Windows, x64/ARM64) from GitHub releases.


Quick Start

  1. Install the extension from the VS Code Marketplace
  2. Open a project -- the PortCTL icon appears in the activity bar
  3. Click the icon to see all listening ports on your machine
  4. (Optional) Run portctl init to create a .portctl.toml for service management

Example .portctl.toml

[project]
name = "my-app"

[services.frontend]
port = 3000
run = "npm run dev"
cwd = "."

[services.api]
port = 8080
run = "cargo run"
cwd = "./api"

[profiles.staging]
frontend = { port = 3100 }
api = { port = 8180 }

Commands

All commands are available via the Command Palette (Cmd+Shift+P / Ctrl+Shift+P) under the PortCTL category:

  • PortCTL: Refresh -- Refresh port and service data
  • PortCTL: Start All Services -- Start all services from config
  • PortCTL: Stop All Services -- Stop all running services
  • PortCTL: Kill Process on Port -- Kill a process by port number
  • PortCTL: Restart Service -- Restart a specific service
  • PortCTL: View Logs -- Show logs for a service or port
  • PortCTL: Fix Port Conflicts -- Auto-resolve port conflicts
  • PortCTL: Inspect Port -- Deep inspect a specific port
  • PortCTL: Watch Port -- Monitor a port for changes
  • PortCTL: Doctor -- Run diagnostic checks
  • PortCTL: Preflight Check -- Verify ports before launch
  • PortCTL: Switch Profile -- Switch port profile (staging, production)
  • PortCTL: Reset to Default Profile -- Restore default port config
  • PortCTL: Initialize Project -- Create .portctl.toml in workspace
  • PortCTL: Interactive TUI -- Open full terminal interface
  • PortCTL: Group by Role -- Group ports by type
  • PortCTL: History -- View port usage history
  • PortCTL: Scan Dev Ports -- Scan for development servers
  • PortCTL: Registry Check -- Check against known services
  • PortCTL: CI Check -- Validate for CI/CD
  • PortCTL: Update CLI -- Update portctl to latest version

Settings

Setting Default Description
portctl.binaryPath portctl Path to the portctl binary. Leave as portctl to auto-detect.

Requirements

  • portctl CLI -- automatically installed via the extension, or install manually:
# macOS (Homebrew)
brew tap abhishekayu/portctl
brew install portctl

# npm (cross-platform)
npm install -g portctl

# From source
cargo install portctl

Supported Platforms

Platform Architecture
macOS Apple Silicon (ARM64), Intel (x64)
Linux x64, ARM64
Windows x64

Links

  • GitHub Repository
  • CLI Documentation
  • Report Issues

License

MIT

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft