Back

[CLOSED] CLI Init function with old templates

  • 0
  • Functions
  • Cloud
whataboutno13
25 Sep, 2023, 13:56

I am working on a cloud project, and seting up all the functions I wrote to the new 1.4 version. Since I have to recreate all the functions I tried to do it with the cli, but it creates the same old template as before. Is there a way to update the cli to get an other template? Besides that is there a way to create a function in the UI without connecting it to github?

TL;DR
The user encountered an issue with the CLI Init function using old templates. They later found out that the updated CLI resolved the issue. They also asked about setting build commands in the appwrite.json file and installation methods for the CLI. The user mentioned trying to set build commands in appwrite.json but it didn't work. They asked if there are alternative methods. They are working on a cloud project and recreating functions in the new 1.4 version. They asked if there is a way to update the CLI to get a different template and if it's possible to create functions in the UI without connecting to GitHub. Solution: The user
whataboutno13
25 Sep, 2023, 14:32

Additionally I tried to set build commands to the appwrite.json but it does not seem to work with "commands":"dart pub get", is there another way to do this?

Drake
25 Sep, 2023, 22:06

how did you install the CLI?

whataboutno13
26 Sep, 2023, 07:20

Uh that was some time ago, I think via script on windows

whataboutno13
26 Sep, 2023, 08:03

Ah no, it was via npm and I updated it now... πŸ™ˆ

whataboutno13
26 Sep, 2023, 08:04

But I am still wondering how to set the build commands in the appwrite.json πŸ˜…

whataboutno13
26 Sep, 2023, 08:52

Ohh nvm, the updated cli did it on its own and its working now πŸ‘

whataboutno13
26 Sep, 2023, 08:53

[CLOSED] CLI Init function with old templates

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