##Installing ecs-cli
This guide should explain how to install ecs-cli for Windows operating systems. After executing all relevant steps you should end up with a functioning installation of ecs-cli.
##Windows
To install the ecs-cli follow these steps:
Start the Windows-Power-Shell with Admin rights, and execute:
New-Item -Path 'C:\Program Files\Amazon\ECSCLI' -ItemType DirectoryInvoke-WebRequest -OutFile 'C:\Program Files\Amazon\ECSCLI\ecs-cli.exe' https://amazon-ecs-cli.s3.amazonaws.com/ecs-cli-windows-amd64-latest.exe- Restart Power-Shell
- Download and install gnupg: DOWNLOAD (opens new window)
gpg --keyserver hkp://keys.gnupg.net --recv BCE9D9A42D51784FInvoke-WebRequest -OutFile ecs-cli.asc https://amazon-ecs-cli.s3.amazonaws.com/ecs-cli-windows-amd64-latest.exe.asc- Restart Power-Shell
gpg --verify ecs-cli.asc 'C:\Program Files\Amazon\ECSCLI\ecs-cli.exe'setx path "%path%;C:\Program Files\Amazon\ECSCLI"
To test if ecs-cli is installed properly type: ecs-cli --version, if it shows something like ecs-cli version 1.21.0 (bb0b8f0) everything is ok.
If you are using PHP-Storm's Terminal, the ecs-cli commands will not work. You have to execute them in e.g. GitBash. This
is also necessary for the npm run deploy:dev command, because it uses some ecs-cli commands to create a Fargate cluster and taskdefinition.