keytool error: java.lang.Exception: Only one command is allowed: both -exportcert and -list were specified : <pre><code>Book-Pro:main vy$ keytool -exportcert -list -v \
&gt; -alias androiddebugkey -keystore ~/.android/debug.keystore
keytool error: java.lang.Exception: Only one command is allowed: both 
-exportcert and -list were specified.
</code></pre>

<p>I am trying to create a SHA1 on MBP for an android Firebase project.
I pull the command from the Firebase console as described...
<a href="https://developers.google.com/android/guides/client-auth" rel="noreferrer">https://developers.google.com/android/guides/client-auth</a></p>

<p>keytool -exportcert -list -v \
-alias androiddebugkey -keystore ~/.android/debug.keystore</p>

<p>and I get an error.
keytool error: java.lang.Exception: Only one command is allowed: both 
    -exportcert and -list were specified.</p>

<p>I have tried hand typing this thinking that perhaps there is a problem with the browser.  I installed new JDK...  not sure what is going wrong here.  assistance please</p>
