In my project I want to test my business logic using unit tests (vitest). To do that efficiently (without mocking full appwrite SDK) I have created a test project on my appwrite instance. To keep databases in sync between dev and test I use appwrite cli. First pulling the dev state:
# Login to server
appwrite login
# Init my dev project
appwrite project init
# Download all config to appwrite.json
appwrite pull all
After that I use appwrite client to get a temporary connection to the test project.
I then delete the existing test db and push all collections
appwrite database delete --database-id mydb
appwrite push collections --all -- force
My expectation would be that this does NOT modify my appwrite.json when I only push. And the appwrite client command should also be only temporary.
However my appwrite.json now has the test project in projectId and projectName and no longer the devproject. This now means that I need to run appwrite loginagain if I want to make changes to dev or pull changes of others.
Is this inteded behaviour? Can this be made configurable? Would help with scripting/automation
Recommended threads
- Manual install docs are out of sync with...
I looked into the manual install docs issue for Appwrite 1.9.0 and wanted to share the findings, since this seems to need a bigger docs decision. What I found:...
- Migration from Self-Hosted to Cloud seem...
Hello, I'm trying to migrate from my Self-Hosted Appwrite instance to Cloud, and can't figure out what's going wrong. - If I initiate the migration from Cloud...
- custom domain on self host Appwrite
I am having a issue, i am using self host version of appwrite at my custom domain (appwrite.example.com), but when i tried adding a custom domain (project1.exam...