I was solving an issue of sdk-for-cli repo https://github.com/appwrite/sdk-for-cli. I installed cli after cloning the repo with the commands
sh install.sh```
the installer downloads its binary from the official file
```downloadBinary() {
echo "[2/4] Downloading executable for $OS ($ARCH) ..."
GITHUB_LATEST_VERSION="2.0.2"
GITHUB_FILE="appwrite-cli-${OS}-${ARCH}"
GITHUB_URL="https://github.com/$GITHUB_REPOSITORY_NAME/releases/download/$GITHUB_LATEST_VERSION/$GITHUB_FILE"
printf "${GREEN}π¦ Downloading Appwrite CLI $GITHUB_LATEST_VERSION ... ${NC}\n"
res=$(curl -s $GITHUB_URL)
if [[ "$res" == *"Not Found"* ]]; then
printf "${RED}β Couldn't find executable for $OS ($ARCH). Please contact the Appwrite team ${NC} \n"
exit 1
fi
curl -L -o $APPWRITE_TEMP_NAME $GITHUB_URL
printSuccess
}```
After making changes, how can I test in local?
Which issue are you working on?
I am working on this issue https://github.com/appwrite/sdk-for-cli/issues/81
sh install.sh
installs the production CLI. To test the CLI that's in the repo, you would execute the index.js like node index.js
.
Btw, that repo is read-only, so the PR that you make will need to be in the sdk generator repo
Understood, thanks a lot @Steven
issue resolved <:appwriteheart2:1073243188954935387>
[SOLVED] How to test the changes of sdk-for-cli in local
Recommended threads
- Spanish reset password email errors
I set language using: const appwrite = new Client() appwrite.setLocale('es') 1. User name is missing in spanish 2. Unnecesary dot after "Gracias": English ver...
- [AppwriteException: Network request fail...
I am getting this error whenever I run getAllSchools I have checked the entire project and I have CRUD permissions enabled for any role but I am still getting t...
- Issue with write permission for all user...
I have a problem with creating new documents (uploading post with video, image and text in my case), for every user such error occurs: `The current user is not ...