Back

Pull function from Web UI to CLI?

  • 1
  • Web
tbsvttr
8 Aug, 2023, 11:13

I created a function (name, access rights, but no code) on the Web UI, now I want to pull it to my local development environment to start to code. How do I do that?

TL;DR
The user wants to pull a function from the Web UI to their local development environment. There is no solution mentioned in the support thread.
NiCK
8 Aug, 2023, 11:33

I don't think we can pull function(s) yet ( please correct me if I am wrong ). Also why do you want to pull the function? Assuming you've already deployed the function using your cloud console, you can directly use it in your project

tbsvttr
8 Aug, 2023, 12:07

Well, so that it initializes folder structure, etc. for me.

tbsvttr
8 Aug, 2023, 12:41

Not to mention that I want to update the local settings in the appwrite.json if someone updates stuff in the UI.

tbsvttr
8 Aug, 2023, 12:49

For example it deletes your execution rights to the function if that array is empty locally and you deploy. Which is quite the problem...

NiCK
8 Aug, 2023, 14:55

You can try setting up the function locally and then deploy it to cloud. Which is exactly what I did in one of my projects. No issues so far🤞

NiCK
8 Aug, 2023, 14:57

Make sure you update the Execute Access under your function settings on the cloud console.

tbsvttr
8 Aug, 2023, 18:00

Yeah, thats possible, but it means that the WebUI is to be avoided when working with Functions. Other than to view or execute them. I do not think that this is intended behaviour.

tbsvttr
8 Aug, 2023, 18:02

I think that is how I will do it until this problem is resolved.

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more