Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

include the connection URI in the no-client output #45

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

afeld
Copy link
Contributor

@afeld afeld commented Jan 1, 2018

Builds on #44 - diff. Closes #35.

$ cf connect-to-service -no-client myapp mydb
Finding the service instance details...
Setting up SSH tunnel...
SSH tunnel created.
Skipping call to client CLI. Connection information:

Host: localhost
Port: 52929
Username: myuser
Password: mypass
Name: mydb

To connect:

	PGPASSWORD=mypass psql -h localhost -p 52929 mydb myuser

Connection URI:

	postgresql://myuser:mypass@localhost:52929/mydb

Leave this terminal open while you want to use the SSH tunnel. Press Control-C to stop.

/cc @harrisj

@afeld afeld requested a review from pburkholder January 1, 2018 00:08
@markdboyd markdboyd changed the base branch from master to main April 17, 2023 13:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant