cimplify
CLI

cimplify explain

Print canonical guidance on Cimplify concepts (cart, products, bundles, composites, services, errors, exit codes) straight from the terminal. 20 topics, bundled into the CLI binary at build time, no network calls.

explain is the offline, terse, agent-friendly counterpart to the docs site. Every topic body is a curated snapshot of the relevant cimplify.dev page (frontmatter and JSX stripped) bundled into the CLI binary at build time. No network calls, no rate limits, no broken-link risk.

Use it mid-edit when you need the rule on one specific thing: "what's the cart payload?", "what does INVALID_INPUT mean?", "how do bundles differ from composites?".

Usage

cimplify explain               # list every topic
cimplify explain cart          # print the cart guide
cimplify explain bundles       # print the bundles + composites section
cimplify explain --json        # topics list as JSON
cimplify explain cart --json   # full topic body in a JSON envelope

Topics

Twenty topics ship in the binary, grouped:

Storefront patterns

TopicCovers
brandSingle source of truth for visible strings (lib/brand.ts)
ejectWhen and how to eject SDK components into your project

Catalogue

TopicCovers
productsProduct shape, fetch by id or slug
variantsVariant axes, picking by axis selections
bundlesFixed bundles and configurable composites (same section)
compositesAlias of bundles
add-onsProduct add-ons / customizations (gift wrap, engraving, …)
quotesQuote-first pricing: lock the price before add-to-cart
discountsDeals and promotional pricing

Transactional

TopicCovers
cartFlat add-to-cart payload + quote-then-add flow
checkoutFlat ProcessArgs body for /checkout, payment methods
ordersOrder shape and status flow
subscriptionsRecurring billing, plan changes, cancellation

Scheduling

TopicCovers
servicesBookable services + variant-aware availability
bookingsSlot lookup, creating bookings, reschedule and cancel

Surface conventions

TopicCovers
errorsCimplifyError codes and remediation
uploadsPresigned upload flow: init → PUT → confirm
exit-codesCLI exit codes (NOT_LINKED=4, TIMEOUT=12, …)
agent-promptsCopy-paste prompts for common Cimplify workflows
seedsAvailable mock seeds and how to switch between them

Output shape

Human mode

cimplify explain bundles

## Bundles and composites
**Bundles** are fixed product groupings with a single combined price.
**Composites** are build-your-own: the customer picks one option per
component and the price is computed from those selections.

```ts
const bundles = await client.catalogue.getBundles()
const bundle = await client.catalogue.getBundleById('bun_xxx')

Source: https://cimplify.dev/docs/sdk/catalogue#bundles-and-composites (snapshot in cli-v0.2.9)


Every topic ends with a footer pointing to the canonical doc URL on `cimplify.dev` and the CLI version the snapshot was taken in. If the docs evolve, upgrade the CLI (`cimplify update`) to refresh the snapshots.

### JSON mode

**No topic**: list every available topic:

```json
{
  "ok": true,
  "data": {
    "topics": [
      { "name": "brand", "description": "…", "source_url": "https://cimplify.dev/docs/templates/brand" },
      { "name": "cart",  "description": "…", "source_url": "https://cimplify.dev/docs/sdk/cart" }
    ]
  }
}

With a topic: full body:

{
  "ok": true,
  "data": {
    "topic": "cart",
    "title": "Cart",
    "body": "## Add an item\n\nThe add-to-cart payload is **flat**…",
    "source_url": "https://cimplify.dev/docs/sdk/cart",
    "snapshot_version": "0.2.9"
  }
}

Exit codes

ConditionExit
Success (list or topic printed)0
Unknown topic9 (NOT_FOUND)

The NOT_FOUND error includes a remediation hint pointing back to cimplify explain (no args) so agents can self-correct.

When to use what

NeedTool
Quick rule mid-edit ("what's the cart shape?")cimplify explain cart
Discover live API surfacecimplify explain (list)
Search the full docs corpusthe MCP cimplify_search_docs tool
Read prose on cimplify.devbrowser / llms.txt

explain is intentionally a fixed, curated set. Searching arbitrary doc paths from the CLI is deferred; use the MCP tool or fetch https://cimplify.dev/llms<path>.mdx directly.

On this page