# How to install the latest CLI

**URL:** <https://openziti.discourse.group/t/how-to-install-the-latest-cli/453>\
**Category:** Building/Development\
**Created:** [April 29, 2022, 4:02am UTC](https://openziti.discourse.group/t/how-to-install-the-latest-cli/453 "2022-04-29T04:02:40Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![TheLumberjack](https://yyz2.discourse-cdn.com/free1/user_avatar/openziti.discourse.group/thelumberjack/32/113_2.png) [@TheLumberjack](https://openziti.discourse.group/u/TheLumberjack)\
**Post date:** [April 29, 2022, 10:51am UTC](https://openziti.discourse.group/t/how-to-install-the-latest-cli/453/2 "2022-04-29T10:51:08Z")

</div>

Yea, passing “yes” at the end will add ziti to your path for that session. Like most ideas, it was one which I was toying around with.

Later versions changed the function. It’d now be:

```auto
source <(wget -qO- https://raw.githubusercontent.com/openziti/ziti/release-next/quickstart/docker/image/ziti-cli-functions.sh); getZiti yes

```

It’s just not ‘fully featured’. If you run it twice, I think it concatenates the path twice right now etc so … I stopped using it in the doc for the timebeing until we make it more robust ( **if** we ever do that).

I would just recommend when running getZiti you update your ~/.bashrc or ~/.zshrc or whatever and update your path manually. That way you can control it.

But - yes it does ‘work’:

```nohighlight
cd@172.24.128.79:sg3: ~$ source <(wget -qO- https://raw.githubusercontent.com/openziti/ziti/release-next/quickstart/docker/image/ziti-cli-functions.sh); getZiti yes
using default ZITI_HOME: /home/cd/.ziti/quickstart/
ZITI_BINARIES_VERSION: v0.25.4
Already Downloaded ziti-linux-amd64-0.25.4.tar.gz at: /home/cd/.ziti/quickstart//ziti-bin/ziti-linux-amd64-0.25.4.tar.gz
UNZIPPING /home/cd/.ziti/quickstart//ziti-bin/ziti-linux-amd64-0.25.4.tar.gz into: /home/cd/.ziti/quickstart//ziti-bin/ziti-v0.25.4
Marking executables at /home/cd/.ziti/quickstart//ziti-bin/ziti-v0.25.4 executable
Adding /home/cd/.ziti/quickstart//ziti-bin/ziti-v0.25.4 to the path if necessary:
adding /home/cd/.ziti/quickstart//ziti-bin/ziti-v0.25.4 to the path
cd@172.24.128.79:sg3: ~$ which ziti
/home/cd/.ziti/quickstart//ziti-bin/ziti-v0.25.4/ziti

```

---

_[View the full topic](https://openziti.discourse.group/t/how-to-install-the-latest-cli/453)._
