Appearance
Utility Commands
Additional console commands for products and email management.
Product Commands
List Products
List products with optional filters.
bash
php bin/console app:products:list [options]Options:
| Option | Description |
|---|---|
--user-id | Filter by user ID |
--email | Filter by user email |
--expiring-days | Show products expiring within N days |
--limit | Limit result count (default: 100) |
Examples:
bash
# List all products
php bin/console app:products:list
# List products expiring in 30 days
php bin/console app:products:list --expiring-days=30
# List products for specific user
php bin/console app:products:list --email=user@example.comCreate Product
Create a new product for a user.
bash
php bin/console app:product:create <user> <name> [options]Arguments:
| Argument | Description |
|---|---|
user | User ID or email |
name | Product name |
Options:
| Option | Description |
|---|---|
--brand | Product brand |
--category | Product category |
--store | Store where purchased |
--purchase-date | Purchase date (Y-m-d format) |
--warranty-months | Warranty period in months (default: 12) |
--serial-number | Serial number |
--notes | Product notes |
Example:
bash
php bin/console app:product:create user@example.com "iPhone 15 Pro" \
--brand="Apple" \
--category="Electronics" \
--store="Apple Store" \
--purchase-date="2024-01-15" \
--warranty-months=24Delete Product
Delete a product by ID.
bash
php bin/console app:products:delete --id=<product-id> --yesDANGER
This will permanently delete the product and all associated data including receipts and claims.
Update Warranty End Date
Manually set a product's warranty end date.
bash
php bin/console app:products:set-warranty-end --id=<product-id> --date=<date>Example:
bash
php bin/console app:products:set-warranty-end --id=123 --date=2025-12-31Get Manufacturer Details
Fetch manufacturer details using Claude AI.
bash
php bin/console app:product:manufacturer-details <identifier> [options]Arguments:
| Argument | Description |
|---|---|
identifier | Product ID or product name |
Options:
| Option | Description |
|---|---|
--brand, -b | Brand name (for name search) |
--category, -c | Product category |
--update-notes | Update product notes with info |
--json | Output raw JSON response |
Examples:
bash
# By product ID
php bin/console app:product:manufacturer-details 123
# By product name
php bin/console app:product:manufacturer-details "iPhone 15" --brand="Apple"
# Update product notes
php bin/console app:product:manufacturer-details 123 --update-notesTIP
This command uses Claude AI to fetch:
- Manufacturer contact information
- Warranty claim processes
- Support channels
- Expected product lifespan
Resend Email Commands
Commands for managing emails via Resend API.
List Emails
List received or sent emails from Resend.
bash
php bin/console resend:emails:list [options]Options:
| Option | Description |
|---|---|
--limit, -l | Number of emails (default: 10) |
--type, -t | Type: 'received' or 'sent' (default: received) |
Examples:
bash
# List received emails
php bin/console resend:emails:list
# List sent emails
php bin/console resend:emails:list --type=sent --limit=20View Email
View details of a specific email.
bash
php bin/console resend:emails:view <email-id> [options]Options:
| Option | Description |
|---|---|
--type, -t | Type: 'received' or 'sent' |
--raw, -r | Show raw JSON response |
--body, -b | Show full email body |
Example:
bash
php bin/console resend:emails:view email_abc123 --bodySend Email
Send an email via Resend.
bash
php bin/console resend:emails:send <to> <subject> <body> [options]Arguments:
| Argument | Description |
|---|---|
to | Recipient email address |
subject | Email subject |
body | Email body content |
Options:
| Option | Description |
|---|---|
--from, -f | From email address |
--html | Treat body as HTML |
--reply-to, -r | Reply-to address |
Examples:
bash
# Send plain text email
php bin/console resend:emails:send user@example.com "Hello" "This is a test"
# Send HTML email
php bin/console resend:emails:send user@example.com "Welcome" "<h1>Hello</h1>" --htmlDatabase Commands
Doctrine Migrations
bash
# Create new migration
php bin/console make:migration
# Run pending migrations
php bin/console doctrine:migrations:migrate
# Check migration status
php bin/console doctrine:migrations:statusCache Management
bash
# Clear all caches
php bin/console cache:clear
# Warm up cache
php bin/console cache:warmupMessage Queue
bash
# Start processing queued messages
php bin/console messenger:consume async
# View failed messages
php bin/console messenger:failed:show
# Retry failed messages
php bin/console messenger:failed:retry