I get this error when I try to run any command, I am logged in but anything like init project etc gives this error. I am using v20.0.0 of node and installed appwrite-cli with -g
TL;DR
Developers encounter an 'Unexpected 'r'' error when trying to run Appwrite CLI commands despite being logged in. The issue may arise due to a compatibility problem with Node v20.0.0. Consider downgrading to a stable Node version, like 14.x, which should resolve the problem.