Back

Where to look for `appwrite.json` file & `.env` file in Windows?

  • 0
  • Tools
Vedsaga
14 Mar, 2023, 02:15

yes, it does I correctly check

TL;DR
The user is trying to locate the `appwrite.json` file and `.env` file in Windows. They have tried running commands such as `dir`, `type appwrite.json`, and `appwrite databases list` but are unable to find the files. They are asking for help on where these files might be located. Solution: The `appwrite.json` file should be located in the directory where the Appwrite CLI was run. Running the command `appwrite init collection` should pull all the collections from the server and project into the `appwrite.json` file in the current directory.
Vedsaga
14 Mar, 2023, 02:15
Drake
14 Mar, 2023, 02:16

Then appwrite init collection should have pulled all the collections from that server and project into the appwrite.json file in your current directory

Vedsaga
14 Mar, 2023, 02:17

I did that but didn't get any it, let me try

Vedsaga
14 Mar, 2023, 02:21
Vedsaga
14 Mar, 2023, 02:21

got success

Vedsaga
14 Mar, 2023, 02:21
Vedsaga
14 Mar, 2023, 02:21

in the backend there is this much many collection

Vedsaga
14 Mar, 2023, 02:24

@Steven where would be the json got saved?

Drake
14 Mar, 2023, 02:24

No

Drake
14 Mar, 2023, 02:24

In the directory where you ran the Appwrite CLI

Vedsaga
14 Mar, 2023, 02:25

I mean yaap, but in that json there is only

Drake
14 Mar, 2023, 02:26

Still?

Vedsaga
14 Mar, 2023, 02:26

yes, same exact json

Drake
14 Mar, 2023, 02:27

Would you please run dir in CMD?

Vedsaga
14 Mar, 2023, 02:27

sure one min

Vedsaga
14 Mar, 2023, 02:28
Drake
14 Mar, 2023, 02:29

And type appwrite.json?

Vedsaga
14 Mar, 2023, 02:30
Drake
14 Mar, 2023, 02:31

How about appwrite databases list?

Vedsaga
14 Mar, 2023, 02:31
Drake
14 Mar, 2023, 02:33

Oh wait...I don't think you actually selected the databases when you did init collection

Drake
14 Mar, 2023, 02:33

Check out the instructions

Vedsaga
14 Mar, 2023, 02:34

ahh got it

Vedsaga
14 Mar, 2023, 02:34

phew, finally got it πŸ™

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