Skip to content
Sites Hackathon is live / Aug 29 - Sep 12
Back

Setting function trigger via command line and getting trigger details

  • 0
  • Flutter
  • Auth
  • Cloud
Aman Keswani
3 Feb, 2025, 04:49

Hi, I'm trying out functions via the appwrite command line tool and I wanted to know if there is any way to change the trigger of the function through command line as I'm planning to create and trigger functions from client side so wanting to know If the trigger can be changed via command line.

Also second doubt, I am making a function with the trigger users.create so how can i get the details of the user in the cloud function

I did try searching in the documentation but am getting confused with multiple things

TL;DR
- You can set function trigger via command line with `appwrite functions update --function-id <YOUR_FUNCTION_ID> --events 'users.create'` - Even though the trigger was added, the event tag did not update when pushing the function - The user wants to change function triggers via the command line for client-side function creation - To get user details in the cloud function with trigger "users.create", refer to the appwrite documentation for specifics
Aman Keswani
3 Feb, 2025, 04:50

appwrite functions update --function-id <YOUR_FUNCTION_ID> --events 'users.create' I tried this command and it did add users.create to the events but when i pushed the function, it did not appear in the events tag

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