Skip to content
Back

any tutorial for switching between different instance?

  • 0
  • Web
LivingProtein
27 Jul, 2025, 20:01

for example, for a repo contains appwrite.json, i want to be able to push to either local docker instance or remote appwrite cloud, i am struggling for finding any steps for doing it in the official doc.

I asked GenAI to create a command for me like this:

TypeScript
appwrite client --endpoint http://localhost:8310/v1 --project-id my-project --key standard_my_key

appwrite login --email local@local.com --password local-user-pwd

It shows:

TypeScript
āœ“ Success: Setting client
ℹ Info: You are currently signed in as 
āœ“ Success: Successfully signed in as local@local.com
♄ Hint: Next you can create or link to your project using 'appwrite init project'

However, i see no changes in the appwrite.json, and it works only after i manually change the endpoint in appwrite .json to localhost, it starts working.

The 1st problem is appwrite init project does not really link, it only create new...

i wonder do i need to change the file manually every time i need to switch among environments? any suggested way of doing it plz?

thanks šŸ™‚

TL;DR
Developers are seeking a tutorial to switch between different instances in Appwrite. The provided command does not update the appwrite.json file automatically. To switch environments, the file needs to be changed manually each time. A workaround is to create shell scripts to automate this process.
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