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

# Install Bark CLI

> Step-by-step guide to installing `bark`, Second's Ark wallet client. Download binaries or compile from source to start making transactions on signet or mainnet.

This step-by-step tutorial gets you started with `bark`, our command-line Ark wallet client.

`bark` works on both [signet](https://bitcoinops.org/en/topics/signet/) (a bitcoin testnet) and mainnet. Once it's installed, head to [test on signet](https://second.tech/docs/getting-started/bark-cli/signet.md) or [test on mainnet](https://second.tech/docs/getting-started/bark-cli/mainnet.md).

## Installing Bark

Your wallet is called `bark` and has two installation methods:

* Download and install the binary releases
* [Compile from source](#compile-from-source)

### Binary release

Download binary releases from
[GitLab](https://gitlab.com/ark-bitcoin/bark/-/releases).

Below are instructions to download the binary, mark it as executable, and add it to your PATH on different platforms.

> [tab] Ubuntu/Debian
>
> **1. Download bark**
>
> ```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
> curl -L https://gitlab.com/ark-bitcoin/bark/-/releases/bark-0.8.1/downloads/bark-0.8.1-linux-x86_64 --output bark
> ```
>
> **2. Mark the binary as executable**
>
> ```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
> chmod +x bark
> ```
>
> **3. Add bark to your PATH**
>
> ```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
> sudo cp bark /usr/local/bin/
> ```

> [tab] Fedora/CentOS
>
> **1. Download bark**
>
> ```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
> curl -L https://gitlab.com/ark-bitcoin/bark/-/releases/bark-0.8.1/downloads/bark-0.8.1-linux-x86_64 --output bark
> ```
>
> **2. Mark the binary as executable**
>
> ```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
> chmod +x bark
> ```
>
> **3. Add bark to your PATH**
>
> ```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
> sudo cp bark /usr/local/bin/
> ```

> [tab] macOS
>
> **1. Download bark**
>
> ```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
> curl -L https://gitlab.com/ark-bitcoin/bark/-/releases/bark-0.8.1/downloads/bark-0.8.1-apple-aarch64 --output bark
> ```
>
> **2. Mark the binary as executable**
>
> ```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
> chmod +x bark
> ```
>
> **3. Add bark to your PATH**
>
> ```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
> sudo cp bark /usr/local/bin/
> ```

> [tab] macOS (Intel)
>
> **1. Download bark**
>
> ```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
> curl -L https://gitlab.com/ark-bitcoin/bark/-/releases/bark-0.8.1/downloads/bark-0.8.1-apple-x86_64 --output bark
> ```
>
> **2. Mark the binary as executable**
>
> ```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
> chmod +x bark
> ```
>
> **3. Add bark to your PATH**
>
> ```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
> sudo cp bark /usr/local/bin/
> ```

> [tab] Windows
>
> Download bark:
>
> ```PowerShell theme={"theme":{"light":"github-light","dark":"github-dark"}}
> wget https://gitlab.com/ark-bitcoin/bark/-/releases/bark-0.8.1/downloads/bark-0.8.1-windows-x86_64.exe -OutFile bark.exe
> ```
>
> > [!NOTE]
> >
> > When using Windows, replace `bark` with `bark.exe` in the rest of the commands in this tutorial.

### Verify installation

Verify you have the correct version installed:

```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
bark --version
```

You should see: `bark 0.8.1`

> [!TIP]
>
> **Seeing an older version?**
>
> If you see a different version number, you likely have an older `bark` installation from previous testing. This happens due to PATH conflicts where your system finds the old binary before the new one.
>
> To fix this, find where the old binary is located:
>
> ```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
> which bark
> ```
>
> Then remove the outdated binary:
>
> ```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
> sudo rm $(which bark)
> ```
>
> After removing the old version, verify the installation again with `bark --version`.

## Compile from source

**1. Clone the repository**

Clone the code from the repository.

```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
git clone https://gitlab.com/ark-bitcoin/bark
cd bark
```

**2. Install Rust**

You also need a Rust compiler. The [rustup website](https://rustup.rs)
offers installation instructions for almost any platform.

**3. Install dependencies and build**

Download additional dependencies using your package manager.

> [tab] Ubuntu/Debian
>
> ```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
> apt update
> apt install build-essential clang protobuf-compiler
> ```

> [tab] Fedora/CentOS
>
> ```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
> yum install gcc make clang protobuf-compiler
> ```

> [tab] macOS
>
> ```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
> brew install gcc make llvm@14 protobuf
> ```

> [tab] Windows
>
> ```PowerShell theme={"theme":{"light":"github-light","dark":"github-dark"}}
> winget install protobuf ezwinports.make LLVM.LLVM
> ```

> [tab] Nix
>
> ```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
> # This assumes you have enabled some experimental features in nix.
> nix develop
> ```
>
> You can build the code using `cargo`. The `cargo build` command will
> only build the binary. The `cargo install` command will build the
> binary and add it to your path.

> [tab] build
>
> ```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
> cargo build --bin bark
> ./target/debug/bark --version
> ```

> [tab] build and install
>
> ```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
> cargo install --locked --path ./bark-cli --bin bark
> bark --version
> ```

**4. Verify installation**

Run `bark --version` to verify that the installation completed successfully.


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