Skip to content

Port Forwarding

Forward a local port to a component's service — connect to remote services as if they were running locally.

port-forward help

Basic Usage

helm-me ops port-forward backend 8080

This forwards localhost:8080backend-service:8000.

Custom Local Port

helm-me ops port-forward backend 9090

Now localhost:9090 is your backend.

Access a Database Locally

helm-me ops port-forward db 5432

Then connect with your favorite database client:

psql -h localhost -p 5432 -U appuser myapp

Redis

helm-me ops port-forward cache 6379
redis-cli -h localhost -p 6379

Tip

Port forwarding is invaluable for debugging. Connect to production databases, Redis instances, or backend APIs directly from your machine.