Can't connect with Elastic Beanstalk CLI: "C:\Users\Danny B>eb init 'eb' is not recognized as an internal or external command, operable program or batch file."

0

I have succesfully installed Elastic Beanstalk CLI on my local Windows machine following instrucions here:

https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/eb-cli3-install-advanced.html

I have also added these paths in my local windows environment variables:

%USERPROFILE%\AppData\Roaming\Python\Scripts

%USERPROFILE%\AppData\Local\Programs\Python\Python311\Scripts

%USERPROFILE%\AppData\Roaming\Python\Python311\Scripts

Ehe error I'm getting in my command line when I type C:\Users\Danny B>eb init

is this:

'eb' is not recognized as an internal or external command, operable program or batch file.

Can anybody help? Thanks!

1 Antwort
0

Hi

It seems that even though you have configured the Paths they have not loaded into your terminal environment.

If you are using Powershell you can use the following command to reload

$env:Path = [System.Environment]::GetEnvironmentVariable("Path","Machine") + ";" + [System.Environment]::GetEnvironmentVariable("Path","User") 

Another way to reload is to simply restart the machine.

Hope this helps

profile picture
Bisina
beantwortet vor einem Jahr
  • I restarted the machine, but it didn't help. I don't understand how to translate what you wrote for my situation.

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen