Global Composer install
composer global require custom-services-limited/oc-cli Make sure your Composer global bin directory is on `PATH` so the `oc` binary is available everywhere.
$ composer global require custom-services-limited/oc-cli
OC-CLI installs as the `oc` binary. Use it globally, from a project-local Composer install, or directly via `php bin/oc` when working from the repository.
composer global require custom-services-limited/oc-cli Make sure your Composer global bin directory is on `PATH` so the `oc` binary is available everywhere.
composer require --dev custom-services-limited/oc-cli For repository usage or local Composer installs, run commands through `php bin/oc` or `./vendor/bin/oc`.
oc list --raw php bin/oc list --raw Runtime-backed and root-aware commands
Use this mode for cache, category, product, order, user, and modification commands that bootstrap real OpenCart models.
cd /path/to/opencart && oc product:list --limit=5 Runtime-backed commands from outside the store
Use `--opencart-root` when you are outside the installation but still need runtime-backed behavior.
oc order:list --opencart-root=/var/www/opencart --customer=John --limit=10 DB-native commands and database-backed config access
Use direct database credentials for `db:*`, `core:config`, and other DB-native flows when no store root is available.
oc db:info --db-host=localhost --db-user=oc_user --db-pass=secret --db-name=opencart oc core:version --opencart oc core:check-requirements oc product:list --limit=5 oc product:create "Demo Product" "DEMO-001" "19.99" oc order:update-status 1 5 --comment="Approved from OC-CLI" --notify