cf-service-connect icon indicating copy to clipboard operation
cf-service-connect copied to clipboard

give example in manual usage instructions

Open afeld opened this issue 7 years ago • 0 comments

Prints the command used without -no-client, if available.

$ 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: 55228
Username: myuser
Password: mypass
Name: dbname

To connect:

    PGPASSWORD=mypass psql -h localhost -p 55228 dbname myuser

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

LaunchCmd data structure inspired by https://github.com/18F/cf-service-connect/issues/18#issuecomment-270039745.

afeld avatar Dec 31 '17 19:12 afeld