Skip to content
Delete Wildcard plugin for CF
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Godeps
bin
binaries
ci
table
.DS_Store
LICENSE
README.md
Wildcard_Plugin_suite_test.go
build-all.sh
repo-index.yml
runTask.sh
sample
wercker.yml
wildcard_plugin
wildcard_plugin.go
wildcard_plugin_test.go

README.md

Wildcard Plugin

This CF CLI Plugin allows users to search through and delete their applications using wildcards. It is useful for users who have multiple apps to manage in their spaces.

#Requirements To prevent your shell from expanding the wildcard before the plugin sees it, wildcards should be escaped using a preceding '\'.

$ cf wc-d app\* 
$ cf wc-a app\?

Installation

Install from CLI (v.6.10.0 and up)

$ cf add-plugin-repo CF-Community http://plugins.cloudfoundry.org/
$ cf install-plugin wildcard_plugin -r CF-Community

//: # (- Download the appropriate plugin binary from releases) //: # (- Install the plugin: $ cf install-plugin <binary>)

Install from Source

$ go get github.com/cloudfoundry/cli
$ go get github.com/jeaniejung/Wildcard_Plugin
$ cd $GOPATH/src/github.com/jeaniejung/Wildcard_Plugin
$ go build *.go
$ cf install-plugin wildcard_plugin

Usage

$ cf wildcard-apps APP_NAME_WITH_WILDCARD
$ cf wildcard-delete APP_NAME_WITH_WILDCARD [-f -r]

Uninstall

$ cf uninstall-plugin wildcard

Commands for wildcard-apps, wc-a

Command/Option Usage Description
wildcard-apps, wc-a cf wc-a APP_NAME_WITH_WILDCARD List all apps in the target space matching the wildcard pattern

Commands for wildcard-delete, wc-d

Command/Option Usage Description
wildcard-delete, wc-d cf wc-d APP_NAME_WITH_WILDCARD Displays list of matched apps and prompts the user for interactive deletion or force deletion of all matched apps
-r cf wc-d APP_NAME_WITH_WILDCARD -r Displays list of matched apps and prompts the user for interactive deletion or force deletion of all matched apps and their routes
-f cf wc-d APP_NAME_WITH_WILDCARD -f Force deletion of all apps in the target space matching the wildcard pattern without confirmation
-f -r cf wc-d APP_NAME_WITH_WILDCARD -f -r Force deletion of all apps and their mapped routes in the target space matching the wildcard pattern without confirmation
You can’t perform that action at this time.