WP-CLI
WP-CLI
WP-CLI Overview
Last Updated: March 31, 2026What 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,...
Config and Customer Commands
Last Updated: March 31, 2026Config Commands Get or set the CLI API key used by WP-CLI commands to authenticate against the REST API. The currently supported configuration key is api_key. # Set the CLI API key wp dmsi-api config set api_key dmsi_key_<your-key> # Get the current CLI API key wp dmsi-api config get api_key Example output: dmsi_key_a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2 Note: The...
Product, License, and Activation Commands
Last Updated: March 31, 2026Product Commands # List products wp dmsi-api products list [--status=<status>] [--format=json|table|csv] # Get a specific product by ID wp dmsi-api products get <id> # Create a new product (--name and --slug are required) wp dmsi-api products create --name=<name> --slug=<slug> [--type=<type>] [--status=<status>] [--description=<description>] License Commands # List licenses wp dmsi-api licenses list [--customer_id=<id>] [--product_id=<id>] [--status=<status>] [--format=json|table|csv]...
Subscription Commands and Output Formats
Last Updated: March 31, 2026Subscription Commands # List subscriptions wp dmsi-api subscriptions list [--customer_id=<id>] [--product_id=<id>] [--status=<active|cancelled|expired>] [--format=json|table|csv] # Create a new subscription (--customer_id and --product_id are required) wp dmsi-api subscriptions create --customer_id=<id> --product_id=<id> [--billing_period=<monthly|yearly>] [--status=<status>] # Renew a subscription wp dmsi-api subscriptions renew <id> # Cancel a subscription (prompts for confirmation unless --yes is passed) wp dmsi-api subscriptions cancel...
