CLI commands
Zuora Workflow Manager provides several Artisan commands to manage the application from the terminal.Workflow commands
app:sync-workflows
Synchronizes workflows from Zuora API to local database. Signature:--customer=NAME: Synchronize only the specified customer--all: Synchronize all customers--sync: Execute synchronously (no queue)
- Asynchronous mode (default): Queues job for background processing
- Synchronous mode (
--sync): Executes immediately, blocks terminal - Requires active queue worker for asynchronous mode
workflows:sync-tasks
Synchronizes tasks from workflow JSON already present in the database. Signature:--all: Synchronize tasks for all workflows--workflow-id=ID: Synchronize tasks for a specific workflow
- After modifications to
syncTasksFromJson()method - To rebuild tasks from existing JSON
- For troubleshooting missing tasks
- Does not download new workflows from Zuora
- Uses only JSON already present in database
- Useful for re-processing after bug fixes
Queue commands
queue:work
Starts a queue worker to process jobs. Signature:--queue=QUEUE: Specify queue to process--tries=N: Maximum number of attempts (default: 1)--timeout=N: Timeout in seconds (default: 60)--sleep=N: Seconds to sleep when queue is empty (default: 3)--max-time=N: Maximum execution time in seconds--max-jobs=N: Maximum number of jobs to process--verbose: Detailed output
queue:listen
Starts a queue listener (automatically restarts after each job). Signature:queue:work: More efficient, doesn’t reload frameworkqueue:listen: Reloads framework after each job, useful for development
queue:failed
Displays failed jobs. Signature:queue:retry
Retries failed jobs. Signature:queue:flush
Deletes all failed jobs. Signature:queue:forget
Deletes a specific failed job. Signature:Scheduler commands
schedule:work
Starts the scheduler in foreground mode. Signature:- Executes scheduled tasks every minute
- Useful for development
- In production use cron job
schedule:list
Displays all scheduled tasks. Signature:schedule:run
Executes scheduled tasks once (used by cron). Signature:Database commands
migrate
Executes database migrations. Signature:--force: Force execution in production--seed: Run seeders after migrations--step: Execute one migration at a time
migrate:fresh
Drops all tables and re-executes migrations. Signature:--seed: Run seeders after migrations
migrate:rollback
Rollback the last batch of migrations. Signature:--step=N: Rollback N batches
db:seed
Executes database seeders. Signature:--class=CLASS: Execute a specific seeder
Cache commands
cache:clear
Clears application cache. Signature:config:clear
Clears configuration cache. Signature:view:clear
Clears compiled view cache. Signature:route:clear
Clears route cache. Signature:optimize:clear
Clears all caches (config, route, view, cache). Signature:Filament commands
make:filament-user
Creates a new Filament user. Signature:shield:generate
Generates permissions for Filament Shield. Signature:--all: Generate for all resources
Utility commands
tinker
Starts interactive REPL. Signature:about
Displays application information. Signature:list
Displays all available commands. Signature:Composer scripts
composer run dev
Starts complete development stack. Command:php artisan serve(server)php artisan queue:listen(queue)php artisan pail(logs)yarn run dev(vite)
concurrently to run all processes in parallel.
composer run test
Executes tests. Command:composer run setup
Complete application setup. Command:composer install- Copy
.env.exampleto.env php artisan key:generatephp artisan migrate --forceyarn installyarn run build