Back

Deploy to production

  • 0
  • Functions
trashcoder
3 Jun, 2023, 16:05

I want to work with multiple appwrite instances. One for development, one for testing and one for production. How can i deploy a function to production with my cli. It’s connected to my test system. Can the cli be connected to multiple appwritw instances?

TL;DR
The user wants to deploy a function to production using the CLI for multiple Appwrite instances. The user has shared a script for maintaining multiple prefs.json files. They are looking for guidance on how to connect the CLI to multiple Appwrite instances. No solution provided.
Drake
3 Jun, 2023, 16:20

You can reconfigure the endpoint: https://appwrite.io/docs/command-line#configuration

And then you'd have to log in again

Drake
3 Jun, 2023, 16:21

I use this script to maintain multiple prefs.json and switch between them

https://gist.github.com/stnguyen90/65315e1ac6a5530d30fd108030464a64

trashcoder
3 Jun, 2023, 16:37

Perfect, i’ll try it later when I’m home.

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