Installation
Prerequisites
- PHP 8.2 or higher
- Composer installed on the server
- A working Dolibarr installation whose
htdocs/path is accessible
Download
Clone the Git repository on your server:
git clone git@github.com:rycks/dolibarr-cli.git dolicli
cd dolicli
Installing dependencies
Install the PHP dependencies via Composer:
composer install --no-dev
Verification
Run the command without argument to display the general help:
./dolibarr
If Dolibarr is not detected, a message tells you to configure the DOLPATH environment variable (see the 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:
cd /path/to/dolicli
git pull origin main
composer install --no-dev