$ oc core:check-requirements

OpenCart operations, from the command line

OC-CLI gives OpenCart teams an audited Symfony Console surface for database maintenance, extensions, cache work, catalog operations, orders, and admin-user workflows. DB-native commands can run anywhere with credentials; runtime-backed commands target real OpenCart 3.x roots.

Stable commands
29
Command families
7
Runtime support
OpenCart 3.x
PHP floor
7.4+

OpenCart 3.x root

$ composer global require custom-services-limited/oc-cli

Install the package and expose the `oc` binary.

$ oc db:backup nightly.sql --compress

Run DB-native maintenance with direct credentials or a detected store.

$ oc order:update-status 1 Processing

Bootstrap real OpenCart 3.x models for runtime-backed workflows.

What the current repo actually supports

The website tracks the audited command surface instead of future-roadmap copy. The important split is execution mode: database-native commands can run with DB flags, while runtime-backed commands need a real OpenCart 3.x installation root.

db:*

DB-native

Backups, checks, repair, optimize, cleanup, and config reads can run from anywhere with direct DB flags.

runtime-backed

OpenCart models

Cache, catalog, order, admin-user, and modification flows bootstrap real OpenCart 3.x code.

--format=json

Automation-ready

Read-heavy commands expose table, JSON, and YAML output for scripts, checks, and dashboards.

Highlighted commands

A small slice of the stable command surface. The full command-by-command detail lives in the API reference.

View full API reference →

db:backup

Create a SQL backup, optionally scoped to selected tables or compressed output.

oc db:backup

extension:install

Import an OCMOD XML package into the modification table.

oc extension:install ./upload.ocmod.xml

product:update

Update a product by overlaying supported fields on the existing OpenCart payload.

oc product:update 100 --price=24.99 --quantity=5

order:update-status

Add order history and update an order status by ID or exact status name.

oc order:update-status 1 Processing

user:create

Create an admin user through the OpenCart admin user model.

oc user:create cli-admin cli-admin@example.com 'StrongPass!123' --firstname=CLI --lastname=Admin

Quick installation

Install the package with Composer, then use the real binary name: `oc`.

Global install

Terminal
composer global require custom-services-limited/oc-cli

Project-local or repo usage

Install locally

composer require --dev custom-services-limited/oc-cli

Run from a repo checkout

php bin/oc core:version

Verify the install

Terminal
oc list --raw

Dig into the current command surface

The docs now track the audited repo, so the API reference and getting-started guide reflect the commands that actually ship today.