> ## Documentation Index
> Fetch the complete documentation index at: https://docs.occtoo.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Install the CLI

> Build and install the occtoo command with Cargo

The CLI is written in Rust and ships as one binary named `occtoo`. There is no release yet, so you build it from the source code on GitHub.

## Requirements

* [Rust and Cargo](https://www.rust-lang.org/tools/install), a recent stable version. The CLI uses the Rust 2024 edition.
* Git.

## Install

Install the latest version from the [Occtoo/cli](https://github.com/Occtoo/cli) repository:

```bash theme={null}
cargo install --git https://github.com/Occtoo/cli occtoo-cli
```

Cargo builds the program and puts `occtoo` in `~/.cargo/bin`. Make sure that folder is on your `PATH`.

Check that it works:

```bash theme={null}
occtoo --version
```

```text theme={null}
occtoo 0.1.0
```

## Update

Run the same command again with `--force` to build the latest version:

```bash theme={null}
cargo install --git https://github.com/Occtoo/cli occtoo-cli --force
```

## Shell completion

`occtoo completions` prints a completion script for your shell. It supports `bash`, `zsh`, `fish`, `powershell` and `elvish`.

For zsh, save the script in a folder on your `fpath`:

```bash theme={null}
occtoo completions zsh > ~/.zfunc/_occtoo
```

For bash:

```bash theme={null}
occtoo completions bash > ~/.local/share/bash-completion/completions/occtoo
```

Open a new terminal to use the completions.

## Next step

[Sign in](https://docs.occtoo.com/cli/authentication.md) so the CLI can reach your organization.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.