Artisan Commands
Shopify
| Command | Description |
|---|---|
shopify:register-webhooks | Register or update Shopify webhooks based on enabled features |
shopify:list-webhooks | List all currently registered webhooks |
Register Webhooks
bash
php artisan shopify:register-webhooksRegisters 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-webhooksDisplays all webhooks currently registered with the Shopify Admin API.
User Management
| Command | Description |
|---|---|
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:
--role—agencyorshop_owner--password— user password
Inventory
| Command | Description |
|---|---|
inventory:sync-mappings | Sync product-to-inventory-item mappings from Shopify |
Data Management
| Command | Description |
|---|---|
webhook:cleanup | Purge old webhook events |
data:purge | GDPR-compliant purge of expired data |
Webhook Cleanup
bash
php artisan webhook:cleanup --days=30Removes 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=180GDPR-compliant purge of expired OOS subscriptions and wishlist data. Use --dry-run to preview what would be deleted. Runs daily via the scheduler.
Bundles
| Command | Description |
|---|---|
bundles:cleanup | Remove orphaned or expired bundle discounts |
bundles:health | Monitor bundle discount status and alert on issues |
bundles:refresh-anchors | Refresh 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:
| Command | Schedule |
|---|---|
webhook:cleanup --days=30 | Daily |
data:purge | Daily |
bundles:cleanup | (when bundles feature enabled) |
bundles:health | (when bundles feature enabled) |
bundles:refresh-anchors | (when bundles feature enabled) |