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
- CreateRow is doing ListRows on self-host...
### setup ``` appwrite 1.9.5 self-hosted bun 1.3 node-appwrite 27.1.0 ``` ### issue Im running a function on a self hosted 1.9.5 with "node-appwrite": "^27.1.0...
- Local function execution results in HTTP...
Hi all, I'm trying to develop a new function on my Ubuntu 24.04 machine running the latest version of docker. I've read through the documentation to install and...
- Appwrite Remote MCP Server not working i...
Whenever I tried Authenticate - Appwrite Login in Browser - Paste Code, it always says `Error: calling "initialize": sending "initialize": Unauthorized` Already...