Skip to content
Cloud Foundry cli plugin for rolling restart of application instances
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore Initial commit Mar 25, 2016
cf_recycle_plugin.go Add check for down state Oct 24, 2018


This Cloudfoundry cli plugin is to allow the recycling of application instances without interruption to the application availability.

The plugin works by restarting individual Application Instances(AI's) waiting for one to fully restart before moving on to the next.


The plugin was built and tested using the below versions

  1. Golang 1.10.0
  2. CloudFoundry CLI 6.35.2

Installation from Source

Using your favorite versioning system, set variables for the major, minor, and patch versions.

git clone
go get
govendor build -ldflags "-X main.Major=${major} -X main.Minor=${minor} -X main.Patch=${patch}" -o out/cf-recycle-plugin cf_recycle_plugin.go
cf install-plugin out/cf-recycle-plugin -f


Binaries are available in the releases section.


cf recycle <APP NAME>
You can’t perform that action at this time.