<p>You can add the two files directly to the path. For <code>zsh</code> this can be configured in the <code>~/.zshrc</code> file.</p>
<p>Instructions: <a href="https://stackoverflow.com/a/11530176/10069673">https://stackoverflow.com/a/11530176/10069673</a></p>

CC BY-SA 4.0
2021-09-23T07:23:09.870Z
Sweet, thanks, that worked. Added `path+=~/.local/bin/.` to bottom of my ~/.zshrc file.
Dylan Kumar
CC BY-SA 4.0
2021-09-20T05:54:15.390Z
2021-09-20T05:54:15.390Z
eddex
<p>Following this guide <a href="https://developers.cardano.org/docs/get-started/installing-cardano-node/#macos" rel="nofollow noreferrer">https://developers.cardano.org/docs/get-started/installing-cardano-node/#macos</a> for Mac OS X. Have completed all steps as per guide. However, I am getting 'zsh: command not found: cardano-cli'.</p>
<p>cardano-cli and cardano-node are clearly in /~.local/bin as you can see below.</p>
<pre><code>ls -l ~/.local/bin
total 160128
-rwxr-xr-x  1 dylankumar  staff  36328576 18 Sep 11:48 cardano-cli
-rwxr-xr-x  1 dylankumar  staff  45651344 18 Sep 11:48 cardano-node
</code></pre>
<p>and ~/.local/bin is in path</p>
<pre><code>echo $PATH
~/.local/bin/:/Users/dylankumar/.cabal/bin:/Users/dylankumar/.ghcup/bin:~/.local/bin/:~/.local/bin/:/Users/dylankumar/.cabal/bin:/Users/dylankumar/.ghcup/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/go/bin:/Library/Apple/usr/bin
</code></pre>
<p>So I don't know why it's not working. I have have also restarted my computer, but am still getting:</p>
<pre><code># cardano-cli --version
cardano-node --version
zsh: command not found: cardano-cli
zsh: command not found: cardano-node
</code></pre>
<p>Any advice would be greatly appreciated!</p>
<p>EDIT:
Added <code>path+=~/.local/bin/.</code> to the bottom of my ~/.zshrc file, and now working.</p>

<cardano-cli><cardano-node>
zsh: command not found: cardano-cli
# zsh: command not found: cardano-cli

(Asked by: username_0 on 2021-09-19)

Following this guide https://developers.cardano.org/docs/get-started/installing-cardano-node/#macos for Mac OS X. Have completed all steps as per guide. However, I am getting 'zsh: command not found: cardano-cli'.
cardano-cli and cardano-node are clearly in /~.local/bin as you can see below.
ls -l ~/.local/bin
total 160128
-rwxr-xr-x  1 dylankumar  staff  36328576 18 Sep 11:48 cardano-cli
-rwxr-xr-x  1 dylankumar  staff  45651344 18 Sep 11:48 cardano-node

and ~/.local/bin is in path
echo $PATH
~/.local/bin/:/Users/dylankumar/.cabal/bin:/Users/dylankumar/.ghcup/bin:~/.local/bin/:~/.local/bin/:/Users/dylankumar/.cabal/bin:/Users/dylankumar/.ghcup/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/go/bin:/Library/Apple/usr/bin

So I don't know why it's not working. I have have also restarted my computer, but am still getting:
# cardano-cli --version
cardano-node --version
zsh: command not found: cardano-cli
zsh: command not found: cardano-node

Any advice would be greatly appreciated!
EDIT:
Added path+=~/.local/bin/. to the bottom of my ~/.zshrc file, and now working.

**Tags:** cardano-cli, cardano-node

---

## 1 answers

### Answer by username_1 on 2021-09-20. Score: 2

You can add the two files directly to the path. For `zsh` this can be configured in the `~/.zshrc` file.

Instructions: <https://stackoverflow.com/a/11530176/10069673>

> **Comments:**
> **username_0**: Sweet, thanks, that worked. Added `path+=~/.local/bin/.` to bottom of my ~/.zshrc file.  

---

