statamic / cli

Install and manage your Statamic projects from the command line.
71 stars 19 forks source link

Does not work on Windows 10 #11

Closed edalzell closed 5 years ago

edalzell commented 5 years ago

I don't expect this to be resolved (must be a small number of users), but thought it worthwhile to enter this so others may find it.

The CLI does not work on windows, with the following errors:

PHP Notice:  Undefined index: HOME in C:\Users\erin.dalzell\AppData\Roaming\Composer\vendor\statamic\cli\statamic on line 14

Notice: Undefined index: HOME in C:\Users\erin.dalzell\AppData\Roaming\Composer\vendor\statamic\cli\statamic on line 14
Statamic CLI Tool 1.0.3

and

In Process.php line 976:

  TTY mode is not supported on Windows platform.

update
edalzell commented 5 years ago

On Windows there is no HOME it is

 [HOMEDRIVE] => C:
    [HOMEPATH] => \Users\erin.dalzell
alwaysblank commented 5 years ago

Can you still replicate this issue? i.e. is there a particular command that fails? I was able to run php please in Windows 10 w/ a fresh Statamic install without problems.

edalzell commented 5 years ago

php please is not same as statamic update. This issue is specifically about the statamic cli tool, NOT the please command.

alwaysblank commented 5 years ago

Sorry, I was tired and confused. Please take a look at that PR and let me know if it resolves the issues for you.

jasonvarga commented 5 years ago

Should be fixed in 1.0.5