> For the complete documentation index, see [llms.txt](https://docs.mangrove.exchange/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.mangrove.exchange/dev/vaults/managing-a-vault-cli.md).

# Managing a vault (CLI)

To get started with the vaults CLI, [download bun first](https://bun.sh/).

Then clone the vaults CLI repository:

```bash
git clone https://github.com/mangrovedao/vaults-snippets.git
```

Then run the following command to install the dependencies:

```bash
bun install
```

When running the CLI, ti expects to have an environment variable `PRIVATE_KEY` . This is the private key with which deployment, and management will be done. I any other login method is needed, please feel free to modify the code or raise an issue.

Then run the CLI:

```bash
bun cli
```
