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 Risposta
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
con risposta un anno fa
  • I restarted the machine, but it didn't help. I don't understand how to translate what you wrote for my situation.

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande