Skip to content
Back

CLI Error using appwrite init site

  • 0
  • Tools
  • Sites
  • Cloud
Rostlino
17 Jul, 2025, 19:31

Hello 👋 ,

we got error using CLI appwrite init site for any project on latest Windows 11, the error is

TypeScript
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

TL;DR
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.
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