---
title: "Installation"
weight: 10
description: "Download, install and initial configuration of Dolicli."
source_hash: "49308bc9"
---

# Installation

## Prerequisites

- PHP 8.2 or higher
- [Composer](https://getcomposer.org/) installed on the server
- A working Dolibarr installation whose `htdocs/` path is accessible

## Download

Clone the Git repository on your server:

```bash
git clone git@github.com:rycks/dolibarr-cli.git dolicli
cd dolicli
```

## Installing dependencies

Install the PHP dependencies via Composer:

```bash
composer install --no-dev
```

## Verification

Run the command without argument to display the general help:

```bash
./dolibarr
```

If Dolibarr is not detected, a message tells you to configure the `DOLPATH` environment variable (see the [Configuration](/dolicli/configuration) section).

## Project structure

| Element | Role |
|---------|------|
| `dolibarr` | Main entry point (executable PHP script) |
| `app/Command/` | Command controllers organized by category |
| `app/Util/` | Utility classes (DolibarrHelper, AnonymizeHelper) |
| `config/` | Minicli application configuration files |
| `vendor/` | Composer dependencies |

## Update

To update Dolicli to the latest version:

```bash
cd /path/to/dolicli
git pull origin main
composer install --no-dev
```
