Skip to content

Artisan Commands

Shopify

CommandDescription
shopify:register-webhooksRegister or update Shopify webhooks based on enabled features
shopify:list-webhooksList all currently registered webhooks

Register Webhooks

bash
php artisan shopify:register-webhooks

Registers the inventory_levels/update webhook when inventory or OOS features are enabled. GDPR webhooks must be configured manually in the Dev Dashboard.

List Webhooks

bash
php artisan shopify:list-webhooks

Displays all webhooks currently registered with the Shopify Admin API.

User Management

CommandDescription
user:create {email}Create an admin user

Create User

bash
php artisan user:create admin@agency.com --role=agency --password=<password>
php artisan user:create owner@shop.com --role=shop_owner --password=<password>

Options:

  • --roleagency or shop_owner
  • --password — user password

Inventory

CommandDescription
inventory:sync-mappingsSync product-to-inventory-item mappings from Shopify

Data Management

CommandDescription
webhook:cleanupPurge old webhook events
data:purgeGDPR-compliant purge of expired data

Webhook Cleanup

bash
php artisan webhook:cleanup --days=30

Removes webhook event records older than the specified number of days. Runs daily via the scheduler.

Data Purge

bash
php artisan data:purge
php artisan data:purge --dry-run
php artisan data:purge --oos-days=90 --wishlist-days=180

GDPR-compliant purge of expired OOS subscriptions and wishlist data. Use --dry-run to preview what would be deleted. Runs daily via the scheduler.

Bundles

CommandDescription
bundles:cleanupRemove orphaned or expired bundle discounts
bundles:healthMonitor bundle discount status and alert on issues
bundles:refresh-anchorsRefresh cached bundle anchor-product mappings

These commands are scheduled to run automatically. See Production for scheduler configuration.

Scheduled Commands

The following commands run automatically via Laravel's scheduler:

CommandSchedule
webhook:cleanup --days=30Daily
data:purgeDaily
bundles:cleanup(when bundles feature enabled)
bundles:health(when bundles feature enabled)
bundles:refresh-anchors(when bundles feature enabled)

Internal developer documentation