<p>I try to install <code>gke-gcloud-auth-plugin</code> on a Mac M1 with zsh, following the gcloud <a href="https://cloud.google.com/kubernetes-engine/docs/how-to/cluster-access-for-kubectl" rel="noreferrer">docs</a>.</p>
<p>The installation ran without issue and trying to re-run <code>gcloud components install gke-gcloud-auth-plugin</code> I get the <code>All components are up to date.</code> message.</p>
<p>However, <code>gke-gcloud-auth-plugin --version</code> returns <code>zsh: command not found: gke-gcloud-auth-plugin</code>. <code>kubectl</code>, installed the same way, works properly.</p>
<p>I tried to install <code>kubectl</code> using <code>brew</code>, with no more success.</p>

<p>I had the same error and here's how I fixed it.</p>
<pre><code>brew info google-cloud-sdk
</code></pre>
<p>which produces:</p>
<pre><code>To add gcloud components to your PATH, add this to your profile:

  for bash users
    source &quot;$(brew --prefix)/share/google-cloud-sdk/path.bash.inc&quot;

  for zsh users
    source &quot;$(brew --prefix)/share/google-cloud-sdk/path.zsh.inc&quot;
    source &quot;$(brew --prefix)/share/google-cloud-sdk/completion.zsh.inc&quot;

  for fish users
    source &quot;$(brew --prefix)/share/google-cloud-sdk/path.fish.inc&quot;

</code></pre>
<p>Grab the code for your terminal and then run it (e.g., for zsh)</p>
<pre><code>source &quot;$(brew --prefix)/share/google-cloud-sdk/path.zsh.inc&quot;
</code></pre>
<p>Add the above line to your <code>.zshrc</code> profile to make sure that it is loaded every time you open a new terminal.</p>
<p>I had originally installed gcloud sdk with homebrew <code>brew install google-cloud-sdk</code>. At that time, I read the Caveats, which tell you how to add gcloud components to your PATH.</p>
<p>I installed both <code>kubectl</code> and <code>gke-gcloud-auth-plugin</code>, and neither of them could be found from the command line. I got the same error as the OP &quot;command not found&quot;</p>
