Is it possible to clone existing cloud code already deployed on server side, through the Parse command line tool?

∥☆過路亽.° 提交于 2019-12-05 18:22:37

With the new release of parse-cli, this is possible now. Make sure your cli is at least at version 2.2.5

Follow below instructions to download cloud code files on your new machine:

  1. parse new then choose e for existing app, then choose your app. This will create a new project directory.
  2. Browse to your project folder using command line tool
  3. Use this command to download: parse download [app] -f. Replace [app] with the app name. Note that -f will override all current files in the directory

If you want to download code files to existing project, you can skip step 1.

King-Wizard

Note this is now possible (2016), with new features at Parse.


Response from a Parse engineer:

"This is by design, which means that maybe we will include this feature one day. For the moment, the CLI tool cannot pull files from cloud code. The tool can only deploy code to Parse, it is not meant to be used in place of source control.

Thanks."

I spent a lot of time looking up an answer (on Google and the closed Parse forum) to this unanswered question. I finally had an answer from a Parse engineer, after having asked them on the Parse/Facebook bug tracker system, if it was possible to clone existing cloud code.

So I hope this answer will help you guys.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!