What This Extension Adds #
Core DDLS has no WP-CLI integration. DMSI Advanced API adds a complete WP-CLI command group (wp dmsi-api) that exposes all DDLS CRUD operations — customers, products, licenses, activations, and subscriptions — as well as plugin configuration access. All commands route through the full API middleware stack, including authentication, validation, rate limiting, and logging, using an internal CLI key stored in WordPress options (dmsi_aapi_cli_key). No manual key setup is needed to use WP-CLI.
Command Group #
All DMSI Advanced API WP-CLI commands are under the wp dmsi-api command group.
wp dmsi-api <command> [<subcommand>] [<args>] [--flags]
Authentication #
WP-CLI commands authenticate using an internal key stored in the dmsi_aapi_cli_key WordPress option. This key is created automatically on plugin activation. You do not need to create or manage API keys to run WP-CLI commands.
Because commands route through rest_do_request() internally, they go through the same authentication, IP whitelist, rate limiter, and request validator middleware as external REST API calls.
Output Formats #
All commands support the --format flag:
| Flag | Description |
|---|---|
--format=json | Raw JSON matching the REST API response (default) |
--format=table | Human-readable ASCII table |
--format=csv | Comma-separated values for import or export |
