appwrite / appwrite/sdk-for-cli

๐Ÿ› Bug Report: appwrite init site

Open
#181 2 comments 0 reactions 1 assignee Assigned to @ChiragAgg5k View on GitHub
bug help wanted
Dominant language
Go
Stars
100
Forks
45
Avg merge
1d 1h
Merged PRs (30d)
5

Description

### ๐Ÿ‘Ÿ Reproduction steps

run` appwrite init site` on latest `Windows 11`

### ๐Ÿ‘ Expected behavior

init the site.

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 ?

### ๐Ÿ‘Ž Actual Behavior

```
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.
```

### ๐ŸŽฒ Appwrite version

Appwrite Cloud

### ๐Ÿ’ป Operating system

Windows

### ๐Ÿงฑ Your Environment

Everything is latest versionm, CLI 8.2.1

### ๐Ÿ‘€ Have you spent some time to check if this issue has been raised before?

- [x] I checked and didn't find similar issue

### ๐Ÿข Have you read the Code of Conduct?

- [x] I have read the [Code of Conduct](https://github.com/appwrite/.github/blob/main/CODE_OF_CONDUCT.md)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.