Skip to content

Instantly share code, notes, and snippets.

@ashlux
Created February 5, 2020 21:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ashlux/d64a573ce576f8db7222818ab32eefa2 to your computer and use it in GitHub Desktop.
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
!#/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