# Missing ziti-cli-functions?

**URL:** <https://openziti.discourse.group/t/missing-ziti-cli-functions/3031>\
**Category:** BrowZer\
**Created:** [August 25, 2024, 2:45pm UTC](https://openziti.discourse.group/t/missing-ziti-cli-functions/3031 "2024-08-25T14:45:46Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![apinohixcorp](https://avatars.discourse-cdn.com/v4/letter/a/9de0a6/32.png) [@apinohixcorp](https://openziti.discourse.group/u/apinohixcorp)\
**Post date:** [August 25, 2024, 2:45pm UTC](https://openziti.discourse.group/t/missing-ziti-cli-functions/3031/1 "2024-08-25T14:45:46Z")

</div>

I'm trying to follow this instruction to install BrowZer using the Clone from Github:  
[BrowZer | OpenZiti](https://openziti.io/docs/learn/quickstarts/browzer/#cloning-from-github)

Enabling the systemd service specifies a `ziti-cli-functions.sh` helper script, but I'm not seeing this script anywhere in the repo or in the host-anywhere quickstart. I did find it in the docker quickstart interestingly enough: [ziti/quickstart/docker/image/ziti-cli-functions.sh at main · openziti/ziti (github.com)](https://github.com/openziti/ziti/blob/main/quickstart/docker/image/ziti-cli-functions.sh). I'd like to use the createBrowZerSystemdFile script so I can enable the service. Was this removed from the git repo at some point?

---

<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:** [August 25, 2024, 7:45pm UTC](https://openziti.discourse.group/t/missing-ziti-cli-functions/3031/2 "2024-08-25T19:45:06Z")

</div>

Hi @apinohixcorp, welcome to the community and to OpenZiti (and zrok and BrowZer)!

You can get the `createBrowZerSystemdFile` function from `ziti-cli-functions.sh` in two ways:

- [clone the repo](https://openziti.io/docs/learn/quickstarts/browzer/#cloning-from-github)
- or [download the file](https://get.openziti.io/ziti-cli-functions.sh) directly if you wish

What's confusing, is that the browzer page you link to makes an incorrect assumption that you've run the "local" or "host it anywhere" quickstart to install the OpenZiti overlay network. If so, the function would then be in your shell... That's definitely an oversight.

Hope that helps, if you need something else let us know, cheers!

---

<div class="post-metadata">

**Author:** ![apinohixcorp](https://avatars.discourse-cdn.com/v4/letter/a/9de0a6/32.png) [@apinohixcorp](https://openziti.discourse.group/u/apinohixcorp)\
**Post date:** [August 25, 2024, 8:03pm UTC](https://openziti.discourse.group/t/missing-ziti-cli-functions/3031/3 "2024-08-25T20:03:44Z")

</div>

Thank you, I ended up getting it by following your instruction from:  
[How to install the latest CLI - Building/Development - openziti](https://openziti.discourse.group/t/how-to-install-the-latest-cli/453/2)

But its good to know its there as well. I'm still not seeing where in the BrowZer repo that file exists? I cloned the repo and I couldn't find it in any directory.

In the instructions on the BrowZer installation page, it says:  
If you have used the ["clone from GitHub"](https://openziti.io/docs/learn/quickstarts/browzer/#cloning-from-github) approach, you have sourced the `ziti-cli-functions.sh` helper script.

I was confused because the "clone from GitHub" instruction for the BrowZer install doesn't get the helper functions, it's the "host it anywhere" instruction that does so, but it doesn't get it from a repo, it sources it during the expressInstall section. It would be clearer if you just added a line to the Enabling BrowZer with Systemd section that shows how to run the source command.

```auto
source <(wget -qO- https://get.openziti.io/ziti-cli-functions.sh); getZiti yes

```

Or added the file to the BrowZer github repo.

Thank you!

---

<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:** [August 25, 2024, 8:14pm UTC](https://openziti.discourse.group/t/missing-ziti-cli-functions/3031/4 "2024-08-25T20:14:22Z")

</div>

> [@apinohixcorp](#):
>
> I'm still not seeing where in the BrowZer repo

Oh wow. Sometimes it's hard to see things when you're too close to them! That's totally my fault... It's not in the browzer repo, it's in [the openziti repo here](https://github.com/openziti/ziti/blob/release-next/quickstart/docker/image/ziti-cli-functions.sh).

I am gonna go update that stanza accordingly... Sorry about that.

---

<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:** [August 25, 2024, 8:22pm UTC](https://openziti.discourse.group/t/missing-ziti-cli-functions/3031/5 "2024-08-25T20:22:44Z")

</div>

Oh and FYI I forgot to mention, make sure you have the proper environment variables set (looks like it's just ZITI\_HOME). If you used a quickstart there is a .env file emitted as part of running it you can source to put those vars into your shell.

---

<div class="post-metadata">

**Author:** ![apinohixcorp](https://avatars.discourse-cdn.com/v4/letter/a/9de0a6/32.png) [@apinohixcorp](https://openziti.discourse.group/u/apinohixcorp)\
**Post date:** [August 25, 2024, 11:46pm UTC](https://openziti.discourse.group/t/missing-ziti-cli-functions/3031/6 "2024-08-25T23:46:00Z")

</div>

Yeah the environment variables definitely tripped me up a few times, but once I saw the general flow of things it was easy to just re-source the .env. I ended up adding my $wildcard\_url to the .env source file as well since that one is needed throughout various steps. That's probably the one that I forgot the most. Thanks again!
