I’m in a trouble installing CLI with composer,
I already have composer installed on my Win OS for other purposes, but now reading about it for Kirby context…
this phrase:
Make sure to place the…
```
~/.composer/vendor/bin
```
…directory in your PATH so the kirby executable can be located by your system.
Basically the PATH is the places the system should look for an executable when you run commands from the terminal or the command line. The path you posted above is a mac / linux style path which wont work since your on windows.
Windows has an equivalent system called environment variables, and there is a guide here to setting them for composer.
Well, if it warns you it doesnt know what to do with the command when you try and work with the CLI, then either the path hasnt been set or the path is incorrect.
No, Composer is a popular third party tool for installing PHP packages and executables. A lot of things use it, not just Kirby CLI.
Unfourtantly im not on Windows. However, i just ran the CLI on my mac and it worked fine so there is no problem with the download.
I think this is possibly a permissions issue since you are trying to install directly into the root of your user folder. I would suggest making a folder called “sites” in the root of your C: drive (C:\sites) and storing your projects in subfolders in there instead. You can then point Wamp at the these folders, or whatever you are using as a local server.
Windows protects files under your user folder, i think the CLI is failing to save & unpack the zip file to that location because it does not have permission to do so (since it’s not you doing it).