'-alias' is not recognized as an internal or external command, operable program or batch file

Issue

I am trying to run this command on terminal –
keytool -exportcert -list -v \
-alias <your-key-name> -keystore <path-to-production-keystore>

after putting keyname and key path I am getting this error –
‘-alias’ is not recognized as an internal or external command,
operable program or batch file.

Solution

Your command should be on one line without the backslash:

keytool -exportcert -list -v -alias <your-key-name> -keystore <path-to-production-keystore>

Answered By – Thomas Kläger

This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply

(*) Required, Your email will not be published