SoraiDocs
GuidesAPI reference

sorai bundles add

Put a product from the same store into a bundle.

product_id is the bundle; a bundle goes on sale only with at least one component.

sorai bundles add --product-id <uuid> --component-product-id <uuid> [flags]

Flags

  • --store <id|slug>: A store id or slug. Defaults to SORAI_STORE, the saved login's store, or the only store.
  • --product-id <uuid> (required): The product's id, from sorai products list.
  • --component-product-id <uuid> (required): The product to include, from sorai products list. It cannot be a bundle.
  • --quantity <int>: How many of it the buyer gets. Defaults to 1.
  • --position <int>
  • --dry-run: Print the request it would send, and for an update the fields that would change, without changing anything.

Permissions

Needs a key with the catalog:write permission.

This command changes data. Run it with --dry-run first to see what it would do.

On this page