cf copy-source <source app> <target app>

Copies the source code of an application to another existing application (and restarts that application)

Arguments

NameDescription
source app
target app

Options

NameDescription
-s <space>Space that contains the target application
-o <org>Org that contains the target application
--no-restartOverride restart of the application in target environment after copy-source completes