Exsiting functions deployed from CLI use .site urls instead of .function
Author: JoshLee0915Created Sep 17, 2026Updated Sep 17, 2026
Labelsproduct / functionsproduct / consoleproduct / messagingproduct / vcsproduct / sitessdk / cli
Reproduction steps
- Create a function through the appwrite console
- Run
appwrite pull functionsand pull down the function that was created - Delete the test function through the appwrite console
- Run
appwrite push functionsand push the test function you just deleted to recreate it through the cli
Expected behavior
The function is created and is using a url in the format of [fucntionid].functions.[site]
Actual Behavior
The function is created and is using a url in the format of [fucntionid].sites.[site]
Appwrite version
Different version (specify in environment)
Operating system
Linux
Your Environment
- Appwrite 2.2.0 selfhosted
- Appwrite CLI version 27.3.0
Have you spent some time to check if this issue has been raised before?
- I checked and didn't find similar issue
Have you read the Code of Conduct?
- I have read the Code of Conduct
Source: appwrite/appwrite