RostlinoOriginal post
Web Developer
Hello 👋 ,
we got error using CLI appwrite init site for any project on latest Windows 11, the error is
Bash
Error: Command failed: cmd /c "mkdir -p . cd . git init git remote add origin https://github.com/appwrite/starter-for-analog git config --global init.defaultBranch main git fetch --depth=1 origin refs/tags/$(git ls-remote --tags origin "0.1.*" | tail -n 1 | awk -F '/' '{print $3}') git checkout FETCH_HEAD"A subdirectory or file . already exists.The issue is probably inside the mkdir -p ., because it created a folder named -p, it should probably just run git clone https://github.com/appwrite/starter-for-analog.git . because the . just clone the content in current folder ?
Thank you
Summary
Error encountered when using 'appwrite init site' CLI command on Windows 1. Issue caused by 'mkdir -p .' attempting to create a folder named '-p'. Suggested solution is to replace 'mkdir -p .' with 'git clone https://github.com/appwrite/starter-for-analog.git .' for proper cloning.