porter datastore connect creates a secure tunnel to connect to Porter-provisioned datastores from your local machine.
Prerequisites
- You’ve logged in to the Porter CLI after running porter auth login
- You’re connected to the correct project by running porter config set-project
- You have a Porter-provisioned datastore (PostgreSQL, Redis, etc.)
Usage
| Flag | Description |
|---|---|
--port | Local port for the tunnel (default: 8122) |
Examples
Connecting to Your Datastore
While the tunnel is running, connect using your preferred client in a separate terminal:The tunnel stays open until you press
CTRL-C. Keep the terminal open while you need access to the datastore.
