Skip to content
CF CLI plugin to copy apps and services to another target or org/space.
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.

Cloud Foundry CLI Copy Plugin

wercker status

This plugin allows you to copy artifacts from one Cloud Foundry space to another space within the same org or different org within the same deployment. It can also copy artifacts to a different Cloud Foundry target that has been saved using the 'CF Targets' plugin. Use the plugin options to selectively copy just the service instances only or everything including applications.


$ cf copy --help
   copy - Copy current space artifacts to another space. Uses targets saved by 'Targets' plugin when copying to another Cloud Foundry target.

   cf copy DEST_SPACE [DEST_ORG] [DEST_TARGET] [--apps|-a APPLICATIONS] [--host-format|-n HOST_FORMAT] [--domain|-d DOMAIN] [--droplet] [--ups|-s COPY_AS_UPS] [--services-only|-o] [--recreate-services|-r][-debug|-d]

   --apps, -a                    Copy only the given applications and their bound services. Default is to copy all applications.
   --host-format, -n             Format of app route's hostname to make it unique i.e. "{{.host}}-{{.space}}".
   --domain, -m                  Domain to use to create routes for copied apps with same hostname.
   --droplet, -c                 Application droplet will be copied to the destination as is. Otherwise, the application bits will be re-pushed.
   --ups, -s                     Comma separated list of services that will be copied as user provided services in the target space.
   --recreate-services, -r       Recreates services at destination.
   --services-only, -o           Make copies of services only. If a list of applications are provided then only services bound to that app will be copied.
   --debug, -d                   Output debug messages.


Install from CLI

$ cf add-plugin-repo CF-Community
$ cf install-plugin 'copy' -r CF-Community

Install from Source (need to have Go installed)

$ go get
$ go get
$ cd $GOPATH/src/
$ go build
$ cf install-plugin -f cf-copy-plugin
You can’t perform that action at this time.