
If I do appwrite functions deploy it overwrites the settings on cloud if I do appwrite functions update then also it overwrites the events set in cloud dashboard. How can I create a function in cloud and then pull all the settings of that function of cloud to my local where I can write the function with appwritecli

I think there is no such feature as pulling the settings, as of now

you have to add the corresponding code manually

Correct, As of now it's a one way road.

You can have two appwrite.json
files one for local and other for production.
To switch between local and cloud is a little akward at the moment as you have to change the CLI settings a follows each time:
appwrite client --endpoint https://cloud.appwrite.io/v1
appwrite client --key 23f24gwrhSDgefaY
appwrite client --selfSigned true
appwrite client --reset // Resets your CLI configuration
appwrite client --debug // Prints your current configuration

I have multiple prefs.json and use this to switch between them: https://gist.github.com/stnguyen90/65315e1ac6a5530d30fd108030464a64

Nice 👍

That is so nice! I'll try it! thank you!

Thanks I'll try that

[Solved]How can I get events set on cloud to my local functions

Hey @Steven I'm trying to use your script, I just have a doubt: when you run: ~/.appwrite/use.sh <domain.json>
you copy the content of domain.json
file to pref.json
?
I mean what is the wokflow to use the script?

prefs.json
is a symlink to domain.json
. the script updates the symlink to point to a different domain.json

So, should I edit domain.json
with the information for that domain and then switch?

just make sure you have a domain.json
with at least {}
, then switch, and then appwrite login
will update the domain.json
with the relevant data

I'll test it now, thanks again!
Recommended threads
- Sites 30MB limit from GitHub
I’m deploying a site from github as Other type on the Hobby plan. It is actually a Flutter web app but it’s in a subdirectory with the root being an html landin...
- [bug] API response is good but UI don't ...
Hi guys! When i got my object, it have billingInfo relation, in the web ui i just got pading state, and the row shows object is null, but when i work whit this...
- Query params are way too limiting in ter...
I was trying to list rows in a table that do not already exist in another table. I retrieved around 260 row IDs which are 13 characters in length each, and then...
