When doing appwrite init function im getting the following:
✗ Error Command failed: git clone --depth 1 --sparse https://github.com/appwrite/functions-starter .
Cloning into '.'...
fatal: cannot change to 'https://github.com/appwrite/functions-starter': No such file or directory
error: failed to initialize sparse-checkout
any ideas why this is happening?
Input:
? What would you like to name your function? Is Already Registered ? What ID would you like to have for your function? unique() ? What runtime would you like to use? Dart (dart-2.17)
What could be the reason?
is your appwrite CLI up to date?
1.2.1
error: failed to initialize sparse-checkout
This error was an issue with a certain version of git i think.
appwrite projects get --projectId [PROJECT_ID]
can you run this command, and see if it works?
use the correct projectid
You are right, my git version is old and rusty, after upgrading it worked! Thanks 😄
I was on 2.26.1 and now im on 2.40.0
That's great 😄
Glad it worked! Please change the post title to [SOLVED] appwrite init function fails if you can <:appwritecheers:892495536823861258>
[SOLVED] appwrite init function fails
Recommended threads
- TablesDB can't be used in Appwrite Funct...
I have written a function (DART) and it won't deploy. Here is what I get : 2026-03-14T17:09:41.459693680Z Compiling ... 2026-03-14T17:09:42.915619217Z ../build...
- Local appwrite run functions --user-id n...
Hi, I'm running into an issue when testing Appwrite functions locally with user impersonation. I'm using a self-hosted Appwrite instance and running functions ...
- Impossible to get USER after createEmail...
Am using provider to deal with functions linked to appwrite. Here is my login. Future<String?> login(String email, String password) async { try { aw...