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
- Copying one project into another
Hi there, I wanted to use the New York location for my project, so I switched to paid and created a new project. Is there a quick way to copy the contents of m...
- nde 22 doest work for cloud function on ...
hey everything is in the title
- 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...