Last active
July 3, 2019 12:53
-
-
Save subinamathew/04f8fd12476ccee19b4c110e37701d75 to your computer and use it in GitHub Desktop.
Stop all Cloud foundry apps and Delete all cloud foundry apps
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*STOP ALL APPS* | |
cf apps | grep started | awk '{print $1}{system("cf sp " $1)}' | |
*REMOVE ALL APPS* | |
cf apps | grep stopped | awk '{print $1}{system("cf d -f -r " $1)}' | |
*CONNECT APPS* | |
cf add-network-policy frontend --destination-app backend |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment