Not at the moment.
The recommended approach is to git the whole folder and process
Is there an appwrite init functions command to sync functions with appwrite.json?
Votes
0
Replies
24
Participants
Unknown
Messages
25
Moderator
wow that's
Moderator
but
Moderator
couldn't you just do a list functions -> set them up in Appwrite.json?
Admin
the code itself was the problem. you couldn't fetch the code
Moderator
yeah I don't want the code
Moderator
I have the code
Then yes you can recreate that file
Moderator
what's the command?
Appwritr init function
Moderator
I honestly deleted my previous one because I was on appwrite cli 2.0.2 lol
Moderator
oh that doesn't recreate the function?
It will let you choose exciting
As long as I remember
Moderator
Moderator
that function exists so idk
Moderator
yeah no
Moderator
it doesn't
Moderator
which is actually not in line with what init does for the others, IMO init and appwrite create function should be switched
Admin
it only created new functions
I stand corrected
Moderator
appwrite init collections initializes the Appwrite.json for your collections
Moderator
imo appwrite init functions should just sync whatever is in the project folder with the server (so if it exists on server and it exists under functions/that_function_name then)
Or should add another command like
appwrite sync functions
Moderator
yeah