scaffold_wp_cli_command
Create a WP-CLI command class with arguments, synopsis, progress bar support, and automatic ServiceProvider registration.
Instructions
Generate a WP-CLI command class with arguments, synopsis, progress bar support, and ServiceProvider registration.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rootNamespace | Yes | Plugin root namespace | |
| commandName | Yes | Command name (e.g., "sync-products") | |
| parentCommand | No | Parent command namespace (default: plugin text domain) | |
| textDomain | Yes | Plugin text domain | |
| description | Yes | Command description | |
| args | No | Arguments as "name:type:description" (e.g., "batch_size:int:Items per batch,dry_run:flag:Simulate only") |