cf-service-connect
cf-service-connect copied to clipboard
give example in manual usage instructions
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.