Skip to content
Back

Do I have to manually change the endpoint in the appwrite.json to switch between environments?

  • 0
  • Web
  • Cloud
LivingProtein
10 Aug, 2025, 20:52

The CLI never changes the json file,

for example:

TypeScript
appwrite client --endpoint https://url --project-id my-project --key standard_12345

I do not know what is the purpose of this command, but after executing it, unless I manually update the endpoint field in the appwrite.json , this command never works works:

TypeScript
appwrite login --email albert@albert.com --password 1234qwer

So my question is:

Do I have to manually change the endpoint in the appwrite.json to switch between environments?

What I am missing here?

TL;DR
To switch between environments in the appwrite.json file, developers need to manually update the endpoint field. The CLI does not automatically change it.
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