#13743·appwrite

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

  1. Create a function through the appwrite console
  2. Run appwrite pull functions and pull down the function that was created
  3. Delete the test function through the appwrite console
  4. Run appwrite push functions and 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?