Back

not able to login to appwrite cli

  • 0
  • Cloud
Ansh
5 Jul, 2023, 18:11

not able to login on appwrite through its cli even though i am able to log in on the appwrite cloud from the same credentials

TL;DR
User is having trouble logging in to appwrite CLI despite being able to log in to appwrite cloud with the same credentials. They have attempted to reset the client and change the endpoint. A possible solution is to remove or rename the old `prefs.json` file located in the `.appwrite` directory in the user's home directory and try again.
Binyamin
5 Jul, 2023, 18:26

When using Appwrite CLI for multiple hosts it's best to remove/rename the old prefs.json then try again

The file is located inside .appwrite inside your user home directory.

Binyamin
5 Jul, 2023, 18:27

You can check Steven's gist about using the CLI with multiple hosts https://gist.github.com/stnguyen90/65315e1ac6a5530d30fd108030464a64

Vedsaga
5 Jul, 2023, 18:46

you are trying reseting the clinet enpoint,

Vedsaga
5 Jul, 2023, 18:47
TypeScript
appwrite client   --reset

and then

TypeScript
appwrite client --endpoint www.cloud.com/v1
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