It's All Stack · CLI Reference

IAS Bundle Deals

Bundle deals & ownership: list, inspect, create, update, sync and delete bundles.

Conventions on this page

Every command accepts --format=<json|table|csv|yaml>. Commands marked Write accept --dry-run (resolve, audit, write nothing) and --yes (skip the prompt). Commands marked Irreversible additionally prompt unless --yes is passed, and any bulk delete refuses to run without an explicit scope argument rather than defaulting to delete-all.

wp ias bundle-deals create#

Create a new bundle.

wp ias bundle-deals create <name> --products=<csv> --discount=<spec> [--enabled] [--dry-run] [--yes] [--format=<format>]

Delegates to IAS\BundleDeals\Database::create_bundle(). New bundles are created DISABLED unless --enabled is passed, so they never go live before you have reviewed and synced them.

Options

ArgumentRequiredTypeDescription
<name>yespositionalBundle display name.
--products=<csv>yesflag (value)Comma-separated WC product IDs. Each must exist, be published and purchasable, and must not itself be a bundle.
--discount=<spec>yesflag (value)Discount specification — one of percent:<n> (n = 0-100), fixed:<amount> (flat amount off the regular total), or bundle:<price> (a flat total price for the whole bundle).
[--enabled]noflagCreate the bundle in the active state (default: disabled).
[--dry-run]noflagValidate and report what would be created without writing anything.
[--yes]noflagSkip the confirmation prompt.
[--format=<format>]noflag (value)Output format.

Examples

wp ias bundle-deals create "Starter Pack" --products=12,34,56 --discount=percent:15 --enabled
wp ias bundle-deals create "Flat Bundle" --products=12,34 --discount=bundle:14.99 --dry-run

Related

wp ias bundle-deals delete · wp ias bundle-deals inspect · wp ias bundle-deals list · wp ias bundle-deals show · wp ias bundle-deals sync · wp ias bundle-deals update · wp ias bundle-deals validate

wp ias bundle-deals delete#

⚠ Irreversible — --dry-run first.

This command permanently destroys data or applies a terminal state that cannot be undone from the CLI. Preview the exact effect with --dry-run, then re-run with --yes once you are certain.

Delete a bundle and its synced (hidden) WooCommerce product.

wp ias bundle-deals delete <id> [--force] [--dry-run] [--yes] [--format=<format>]

Force-deletes the linked WC_Product_Simple (via IAS\BundleDeals\BundleProduct::delete_product()) and then removes the bundle row (via IAS\BundleDeals\Database::delete_bundle(), which also flushes the bundle cache). This is NON-RECOVERABLE.

For safety the command REFUSES to delete a bundle that has recorded purchases unless --force is given. The purchase guard reads the bundle analytics table (net purchases = purchases minus refunds); if analytics are disabled no purchases are recorded, so pass --force to delete in that case.

Options

ArgumentRequiredTypeDescription
<id>yespositionalBundle ID.
[--force]noflagOverride the purchase guard — delete even if the bundle has recorded purchases. This is NOT the confirmation flag; pass --yes to skip the prompt.
[--dry-run]noflagReport what would be deleted (including whether it would be refused) without writing anything.
[--yes]noflagSkip the confirmation prompt.
[--format=<format>]noflag (value)Output format.

Returns

The deleted bundle_id and the linked_product_id that was removed.

Examples

wp ias bundle-deals delete 12
wp ias bundle-deals delete 12 --force --yes
wp ias bundle-deals delete 12 --dry-run

Related

wp ias bundle-deals create · wp ias bundle-deals inspect · wp ias bundle-deals list · wp ias bundle-deals show · wp ias bundle-deals sync · wp ias bundle-deals update · wp ias bundle-deals validate

wp ias bundle-deals inspect#

Report the plugin slug, version and CLI environment.

wp ias bundle-deals inspect [--format=<format>]

Options

ArgumentRequiredTypeDescription
[--format=<format>]noflag (value)Output format.

Example

wp ias bundle-deals inspect

Related

wp ias bundle-deals create · wp ias bundle-deals delete · wp ias bundle-deals list · wp ias bundle-deals show · wp ias bundle-deals sync · wp ias bundle-deals update · wp ias bundle-deals validate

wp ias bundle-deals list#

List bundles.

wp ias bundle-deals list [--enabled-only] [--format=<format>]

Options

ArgumentRequiredTypeDescription
[--enabled-only]noflagOnly list bundles whose master switch (is_active) is on.
[--format=<format>]noflag (value)Output format.

Examples

wp ias bundle-deals list
wp ias bundle-deals list --enabled-only --format=json

Related

wp ias bundle-deals create · wp ias bundle-deals delete · wp ias bundle-deals inspect · wp ias bundle-deals show · wp ias bundle-deals sync · wp ias bundle-deals update · wp ias bundle-deals validate

wp ias bundle-deals show#

Show a bundle's composition, pricing and schedule.

wp ias bundle-deals show <id> [--format=<format>]

Options

ArgumentRequiredTypeDescription
<id>yespositionalBundle ID.
[--format=<format>]noflag (value)Output format.

Example

wp ias bundle-deals show 12 --format=json

Related

wp ias bundle-deals create · wp ias bundle-deals delete · wp ias bundle-deals inspect · wp ias bundle-deals list · wp ias bundle-deals sync · wp ias bundle-deals update · wp ias bundle-deals validate

wp ias bundle-deals sync#

Re-sync a bundle to its linked (hidden) WooCommerce product.

wp ias bundle-deals sync <id> [--yes] [--force] [--dry-run] [--format=<format>]

Delegates to IAS\BundleDeals\BundleProduct::sync_product(), which creates or updates the hidden WC_Product_Simple that powers native cart/checkout. Use this to repair drift between a bundle definition and its linked product.

Options

ArgumentRequiredTypeDescription
<id>yespositionalBundle ID.
[--yes]noflagSkip the confirmation prompt (suite-standard for write commands).
[--force]noflagAlias for --yes — re-sync without the confirmation prompt.
[--dry-run]noflagReport what would be synced without writing anything.
[--format=<format>]noflag (value)Output format.

Examples

wp ias bundle-deals sync 12
wp ias bundle-deals sync 12 --yes
wp ias bundle-deals sync 12 --dry-run

Related

wp ias bundle-deals create · wp ias bundle-deals delete · wp ias bundle-deals inspect · wp ias bundle-deals list · wp ias bundle-deals show · wp ias bundle-deals update · wp ias bundle-deals validate

wp ias bundle-deals update#

Update fields on an existing bundle.

wp ias bundle-deals update <id> [--name=<name>] [--products=<csv>] [--discount=<spec>] [--enabled[=<bool>]] [--dry-run] [--yes] [--format=<format>]

Delegates to IAS\BundleDeals\Database::update_bundle(); only the fields you pass are changed. Re-validates products and discount when supplied.

Options

ArgumentRequiredTypeDescription
<id>yespositionalBundle ID.
[--name=<name>]noflag (value)New bundle name.
[--products=<csv>]noflag (value)New comma-separated WC product IDs (validated as for create).
[--discount=<spec>]noflag (value)New discount specification (percent:<n>, fixed:<amount>, or bundle:<price>).
[--enabled[=<bool>]]noflag (value)Set the active state. --enabled enables; --enabled=0 disables.
[--dry-run]noflagValidate and report what would change without writing anything.
[--yes]noflagSkip the confirmation prompt.
[--format=<format>]noflag (value)Output format.

Examples

wp ias bundle-deals update 12 --discount=percent:20
wp ias bundle-deals update 12 --products=12,34,99 --enabled=0 --dry-run

Related

wp ias bundle-deals create · wp ias bundle-deals delete · wp ias bundle-deals inspect · wp ias bundle-deals list · wp ias bundle-deals show · wp ias bundle-deals sync · wp ias bundle-deals validate

wp ias bundle-deals validate#

Validate a bundle's integrity (products exist, prices/discount sound, synced).

wp ias bundle-deals validate <id> [--format=<format>]

Options

ArgumentRequiredTypeDescription
<id>yespositionalBundle ID.
[--format=<format>]noflag (value)Output format.

Example

wp ias bundle-deals validate 12 --format=json

Related

wp ias bundle-deals create · wp ias bundle-deals delete · wp ias bundle-deals inspect · wp ias bundle-deals list · wp ias bundle-deals show · wp ias bundle-deals sync · wp ias bundle-deals update