Rank 1: Thread
Hi Folks,
I am trying to deploy a functions directly from my local machine using the appwrite cli.
Am I doing something wrong 😄
Votes
0
Replies
23
Participants
Unknown
Messages
24
Rank 1: Thread
Hi Folks,
I am trying to deploy a functions directly from my local machine using the appwrite cli.
Am I doing something wrong 😄
Moderator
I recommend creating the function and everything with the cli way
Moderator
First create a folder
Moderator
Open it in your command line
Moderator
(using cd command)
Moderator
Once you're in the folder, run
appwrite init project
Moderator
Then
appwrite init function
Moderator
Create a new function with a name and ID
Yeah I can try that ( Anyways I am not blocked, I used the manual way for now to get started). I created this thread to understand what’s wrong here, is it something with the cli in general or the params being passed. If so then there’s scope to improve docs or create awareness on how to use cli.
Rank 4: Virtual Machine
Is there a space after the comma? Spaces cause problems on linux, not sure about powershell
I just copied the command from the UI (and its in PS)
I don’t think there’s any space there
Moderator
Not sure, but anyways, I recommend going through the CLI way I mentioned. Forgot to say that after following the aforementioned steps, you get a folder with a function template. You just modify it and write the
appwrite deploy function
Command
Rank 4: Virtual Machine
Is there a reason why you are using older version of appwrite cli? The latest version should be 2.0.2
I was using that only, it didn’t work so I went to appwrite cli npm registry there I saw that version and I downgraded thinking the docs are per old cli😅
Rank 4: Virtual Machine
createDeployment command might not have existed in 0.x. Thats 2 major versions behind!
I can post the error after updating the package again
But as far as I remember it was exact same error
Rank 4: Virtual Machine
Where is the third screenshot from? That seems to need correction 😄
Npm resgistry😅
Rank 4: Virtual Machine
ahh its the docs for 0.17
Rank 1: Thread
Rank 4: Virtual Machine
Could you try putting it all in a single line without the comma
Moderator
As said, I think if you create a function by the way I mentioned, you will have 0 problems with current and future functions