v2 Command Reference
porter datastore connect
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 used Porter to provision a datastore
Datastores
porter datastore connect
creates a secure tunnel through which you can connect to your Porter-provisioned datastore locally. For example:
Example output from running this command:
While the secure tunnel is running, you can run the following command in a separate shell to connect to your datastore (assuming the datastore is a redis cache):
Port
If you would like to specify the port on which to connect to the secure tunnel, you can use the --port
flag. By default, this is set to 8122.