kf inventory

Inspect and adjust inventory.

Read-only inventory levels plus the canonical adjust + transfer create commands.

kf inventory levels

List inventory levels via authenticated GraphQL.

Filters by variant or location. Read-only.

FlagRequiredDescription
--tenant <id>yesTarget tenant id.
--environment <id>noTarget environment id.
--variant <id>noFilter by variant id.
--location <id>noFilter by location id.
--limit <n>noResult cap, default 20.

Example

kf inventory levels --tenant tnt_demo --location loc_edison

kf inventory contracts

List canonical inventory IO public contracts.

Local read-only manifest view of InventorySource, InventorySignal, InventoryHistory, and InventoryExport contracts with schema refs, MCP discovery tool, and reverse-domain extension namespace rules.

FlagRequiredDescription
`--contract <InventorySourceInventorySignalInventoryHistory

Example

kf inventory contracts --contract InventorySignal --pretty

kf inventory adjust

Adjust on_hand, reserved, or allocated quantity on an inventory level.

Idempotent via --idempotency-key. Adjusts a single bucket with optimistic concurrency via --expected-version.

FlagRequiredDescription
--tenant <id>yesTarget tenant id.
--inventory-level-id <id>yesTarget inventory level id.
`--quantity-type <ON_HANDRESERVEDALLOCATED>`
--delta <n>yesSigned delta to apply.
--expected-version <n>yesOptimistic concurrency token.
--actor-type <type>yesActor type (USER, AGENT, API_KEY, SYSTEM).
--actor-id <id>yesActor id.
--reason <code>noDomain reason code.
--idempotency-key <key>noIdempotency key for safe retries.

Example

kf inventory adjust --tenant tnt_demo --inventory-level-id il_01 --quantity-type ON_HAND --delta -1 --expected-version 4 --actor-type USER --actor-id usr_sam

kf inventory transfer create

Kick off a stock transfer between two locations.

Decreases available at the source by moving quantity into in-transit. Idempotent via --idempotency-key.

FlagRequiredDescription
--tenant <id>yesTarget tenant id.
--transfer-ref <ref>yesTenant-supplied transfer reference.
--variant <id>yesVariant id.
--from-location <id>yesSource location id.
--to-location <id>yesDestination location id.
--owner-id <id>yesInventory owner id.
--from-level-id <id>yesSource inventory level id.
--to-level-id <id>yesDestination inventory level id.
--quantity <n>yesQuantity to move.
--actor-type <type>yesActor type.
--actor-id <id>yesActor id.
--reason <code>noDomain reason code.
--ship-by <iso>noShip-by ISO timestamp.
--expected-delivery <iso>noExpected delivery ISO timestamp.
--carrier <name>noCarrier name.
--tracking-ref <ref>noCarrier tracking reference.
--idempotency-key <key>noIdempotency key for safe retries.

Example

kf inventory transfer create --tenant tnt_demo --transfer-ref T-1 --variant v_01 --from-location loc_a --to-location loc_b --owner-id own_01 --from-level-id il_a --to-level-id il_b --quantity 5 --actor-type USER --actor-id usr_sam
Privacy choices

This controls app-managed marketing analytics: cookie-free Plausible, optional Cloudflare Web Analytics, and first-party event logs with session-only UTM attribution. The site works without it.

Read the privacy notice