Back

Fetching function information into the `appwrite.json` file.

  • 0
  • Functions
  • Cloud
nightwielder
1 Dec, 2023, 19:53

I have created a project, added some collections and made some functions using the web interface. The functions reside in a GitHub repository. So, with the appwrite-cli, I connected to the project and a file called appwrite.json was generated. When I ran appwrite init collection all the collections information were fetched, including the attributes and things. But when I ran appwrite init function, the prompt to create a new function appeared. But I want all the data of the functions I have already created in the web console, so that I can edit the events, permissions etc fields in the appwrite.json file. I hope I'm clear.

TL;DR
If you're deploying with GitHub, you can't use the CLI to manage functions. To fetch function information into the `appwrite.json` file, you need to manually add the data for each function in the web console to the `appwrite.json` file. There is no automatic way to do this through the CLI.
Drake
2 Dec, 2023, 00:38

If you're deploying using GitHub, you wouldn't be able to use the CLI for managing the function

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