Term 'statamic' unrecognized in PowerShell after successfully installing Statamic CLI #5822
-
In PowerShell I have installed the Statamic CLI using "composer global require statamic/cli" with no errors but when I enter "statamic" or "statamic list" I just get "the term 'statamic' is not recognized as a name of a cmdlet...". Does anyone know how to diagnose the issue? Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Sounds like you might need to add Composer's https://stackoverflow.com/a/28393808 The answer states you should restart your PC - simply closing the PowerShell window and re-opening it after making the change should be enough |
Beta Was this translation helpful? Give feedback.
Sounds like you might need to add Composer's
bin
directory to the thePATH
variable. This answer on Stack Overflow has pretty good steps to do this (theAppData
and related folders might be hidden, in case you don't see them right away):https://stackoverflow.com/a/28393808
The answer states you should restart your PC - simply closing the PowerShell window and re-opening it after making the change should be enough