'Appwrite init function returns "Error ENOENT"
I am trying to set up a cron job using Appwrite functions.
I already setup appwrite cli and every other thing works fine but when I try to create a function using "appwrite init function", I get an error directing me to open up a readme.md file that does not exist on my computer.

The thing is, when I open up my appwrite(backend) account on Chrome, I see the function I tried creating using cli.
Any help, please?
Solution 1:[1]
Appwrite maintainer here. We're aware of this issue and working on it as mentioned in out github issue https://github.com/appwrite/sdk-for-cli/issues/30
As a temporary workaround please use WSL.
Solution 2:[2]
This is a problem you encounter when developing on windows,I suggest using WSL2 for your appwrite function development. Follow the steps here to Install wsl2 on windows
After istallation, install appwrite cli with the linux install script
curl -sL https://appwrite.io/cli/install.sh | bash
Make sure you login after installation, you can then initialize your project and create your function.
everthing works perfectly for me.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Christy Jacob |
| Solution 2 | Emmanuel Aliji |

