Skip to content

Enables quick account switching between different Cloud Foundry environments.

Notifications You must be signed in to change notification settings

mpivotal/cfswitch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 

Repository files navigation

cfswitch

Enables quick account switching between different Cloud Foundry environments.

$ cfswitch <CF ACCOUNT>

alt tag

Install

cfswitch is a simple shell script and how you install it is entirely up to you. Just remember to chmod +x to make it executable.

mkdir ~/workspace

cd ~/workspace

git clone https://github.com/mpivotal/cfswitch.git

ln -s ~/workspace/cfswitch/cfswitch /usr/local/bin/cfswitch

chmod +x /usr/local/bin/cfswitch

cfswitch default

Follow the instructions provided about how to create your initial account that cfswitch can help you quickly switch to.

Known Issues

When a session expires, cfswitch breaks. Currently, the only way to fix the issue is to follow these steps:

  1. rm ~/.cf/config.json.<CF ACCOUNT>

  2. cf login -a <CF API URL>

  3. cf ~/.cf/config.json ~/.cf/config.json.<CF ACCOUNT>

  4. cfswitch <CF ACCOUNT>

About

Enables quick account switching between different Cloud Foundry environments.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages