Skip to content
Back

appwrite-cli is not working as expected

  • 0
  • Self Hosted
MrT2010
18 Apr, 2025, 16:36

If I run appwrite init project in a new directory, I get the following error.

An Appwrite project ( project-name ) is already associated with the current directory. Would you like to override (Y/n)

If I press "Y" and try to pull the current content of the project, it tells me that it was pulled successfully but the directory is still empty, no appwrite.json or any function I try to pull which are on the server in the project. I already logged out and in again, set the endpoint and so on.

TypeScript
appwrite --version 6.2.3
Server selfhosted: Version 1.6.1

Any ideas?

TL;DR
Issue: When running `appwrite init project` in a new directory, receiving an error message about a project already being associated with the directory. Pressing "Y" to override does not successfully pull project content to the directory, despite indication of successful pull. Potential solution: - Manually create the `appwrite.json` file with project details in the directory, or try removing and re-adding the project association.
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