add copy_doc command (useful for copying apps from the command line)