Created
February 5, 2020 21:10
-
-
Save ashlux/d64a573ce576f8db7222818ab32eefa2 to your computer and use it in GitHub Desktop.
Single command to stop or start all cloud foundry apps in a given spacej
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
!#/bin/sh | |
alias cf-stop-all="for app in $(cf apps | tail -n +5 | awk '{ print $1}') ; do cf stop $app & ; done" | |
alias cf-start-all="for app in $(cf apps | tail -n +5 | awk '{ print $1}') ; do cf start $app & ; done" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment