Skip to content

Instantly share code, notes, and snippets.

@krujos
Last active August 29, 2015 14:18
Show Gist options
  • Save krujos/7cdc7f7d26af7619d85c to your computer and use it in GitHub Desktop.
Save krujos/7cdc7f7d26af7619d85c to your computer and use it in GitHub Desktop.
targeting two CF instances at once
➜ bosh-lite git:(master) CF_HOME=/tmp/cf2 cf login -a https://api.10.244.0.34.xip.io -u admin -p admin --skip-ssl-validation
API endpoint: https://api.10.244.0.34.xip.io
Authenticating...
OK
Targeted org jdk-org
Targeted space jdk-space
API endpoint: https://api.10.244.0.34.xip.io (API version: 2.23.0)
User: admin
Org: jdk-org
Space: jdk-space
➜ bosh-lite git:(master) CF_HOME=/tmp/cf1 cf login -a https://api.run.pivotal.io -u jkruck@pivotal.io -p XXXXXXXXX -o krujos -s development
API endpoint: https://api.run.pivotal.io
Authenticating...
OK
Targeted org krujos
Targeted space development
API endpoint: https://api.run.pivotal.io (API version: 2.23.0)
User: jkruck@pivotal.io
Org: krujos
Space: development
➜ bosh-lite git:(master) CF_HOME=/tmp/cf1 cf apps $
Getting apps in org krujos / space development as jkruck@pivotal.io...
OK
name requested state instances memory disk urls
invest stopped 0/1 128M 1G invest.cfapps.io
wine stopped 0/1 1G 1G wine.cfapps.io
wine-data stopped 0/1 1G 1G wine-data.cfapps.io
wine-rating stopped 0/1 1G 1G wine-rating.cfapps.io
➜ bosh-lite git:(master) CF_HOME=/tmp/cf2 cf apps
Getting apps in org jdk-org / space jdk-space as admin...
OK
name requested state instances memory disk urls
investigator started 1/1 256M 1G investigator.10.244.0.34.xip.io
lifecycle-sb started 1/1 1G 1G lifecycle-sb.10.244.0.34.xip.io
➜ bosh-lite git:(master)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment