kf tenant

Manage tenant config, locations, API keys, broadcasts, and feeds.

kf tenant acknowledge-admin-broadcast-delivery

Record recipient acknowledgement for one app feed delivery.

Record recipient acknowledgement for one app feed delivery. Version-checked and idempotent; the emitted event carries only delivery ids and status facts.

FlagRequiredDescription
--tenant <id>yesTarget tenant id.
--environment <id>noTarget environment id; defaults to the active profile environment.
--actor-type <type>yesActor type (USER, SYSTEM, CONNECTOR, AGENT, SERVICE).
--actor-id <id>yesActor id.
--idempotency-key <key>noIdempotency key for safe retries. Generated when omitted.
--delivery-id <value>yesDelivery id.
--expected-version <value>yesExpected version.
--web-session-id <value>noWeb session id.
--app-user-session-id <value>noApp user session id.

Example

kf tenant acknowledge-admin-broadcast-delivery --tenant tnt_demo --actor-type USER --actor-id usr_sam --delivery-id <value> --expected-version <value>

kf tenant cleanup-sample-data

Delete the rows the trial demo bootstrap stamped with custom_fields['karmanflow:source'] = 'trial-bootstrap' for a single tenant.

Delete the rows the trial demo bootstrap stamped with custom_fields['karmanflow:source'] = 'trial-bootstrap' for a single tenant. Lets an operator clear seeded sample data before they import their own catalog. Walks channel_availabilities, inventory_levels, product_variants, products, and locations in dependency order. Cannot touch operator-authored rows because tenant custom_fields never use the karmanflow: prefix. Idempotent on replay; a second call after a successful cleanup finds no marker rows and returns counts of 0.

FlagRequiredDescription
--tenant <id>yesTarget tenant id.
--environment <id>noTarget environment id; defaults to the active profile environment.
--actor-type <type>yesActor type (USER, SYSTEM, CONNECTOR, AGENT, SERVICE).
--actor-id <id>yesActor id.
--idempotency-key <key>noIdempotency key for safe retries. Generated when omitted.

Example

kf tenant cleanup-sample-data --tenant tnt_demo --actor-type USER --actor-id usr_sam

kf tenant create-api-key

Issue an environment-pinned API key for a service, agent, connector, partner, or extension.

Issue an environment-pinned API key for a service, agent, connector, partner, or extension. The key prefix is derived from the tenant environment type and the raw secret is only returned once.

FlagRequiredDescription
--tenant <id>yesTarget tenant id.
--environment <id>noTarget environment id; defaults to the active profile environment.
--actor-type <type>yesActor type (USER, SYSTEM, CONNECTOR, AGENT, SERVICE).
--actor-id <id>yesActor id.
--idempotency-key <key>noIdempotency key for safe retries. Generated when omitted.
--display-name <value>yesDisplay name.
--subject-type <value>yesSubject type.
--subject-id <value>yesSubject id.
--scopes <value>noScopes.
--constraints <value>noConstraints.
--expires-on <value>noExpires on.

Example

kf tenant create-api-key --tenant tnt_demo --actor-type USER --actor-id usr_sam --display-name <value> --subject-type <value> --subject-id <value>

kf tenant create-location

Create a Location (store, warehouse, 3PL, dropship, virtual node).

Create a Location (store, warehouse, 3PL, dropship, virtual node). Tenant-scoped uniqueness on locationRef. Idempotent by metadata.idempotencyKey; replays return the prior receipt and reject keys reused for a different locationId.

FlagRequiredDescription
--tenant <id>yesTarget tenant id.
--environment <id>noTarget environment id; defaults to the active profile environment.
--actor-type <type>yesActor type (USER, SYSTEM, CONNECTOR, AGENT, SERVICE).
--actor-id <id>yesActor id.
--idempotency-key <key>noIdempotency key for safe retries. Generated when omitted.
--location-id <value>noLocation id.
--location-ref <value>yesLocation ref.
--name <value>yesName.
--location-type <value>yesLocation type.
--status <value>noStatus.
--pickup-enabled <value>noPickup enabled.
--ship-from-store-enabled <value>noShip from store enabled.
--service-enabled <value>noService enabled.
--trust-level <value>noTrust level.
--country <value>noCountry.
--state <value>noState.
--city <value>noCity.
--postal-code <value>noPostal code.
--address-line1 <value>noAddress line1.
--address-line2 <value>noAddress line2.
--region-code <value>noRegion code.
--latitude <value>noLatitude.
--longitude <value>noLongitude.
--time-zone <value>noTime zone.
--handling-cutoff-local-time <value>noHandling cutoff local time.
--phone <value>noPhone.
--email <value>noEmail.
--contact-party-id <value>noContact party id.
--lot-tracking-enabled <value>noLot tracking enabled.
--serial-tracking-enabled <value>noSerial tracking enabled.
--temperature-controlled <value>noTemperature controlled.
--hazmat-certified <value>noHazmat certified.
--alcohol-licensed <value>noAlcohol licensed.
--cold-chain <value>noCold chain.
--cross-dock-capable <value>noCross dock capable.
--is-return-destination <value>noIs return destination.
--is-transfer-destination <value>noIs transfer destination.
--capacity-units <value>noCapacity units.
--capacity-pallets <value>noCapacity pallets.
--capacity-sq-ft <value>noCapacity sq ft.
--parent-location-id <value>noParent location id.
--tax-jurisdiction-ref <value>noTax jurisdiction ref.
--opened-on <value>noOpened on.
--custom-fields <value>nonot accepted for this command

Example

kf tenant create-location --tenant tnt_demo --actor-type USER --actor-id usr_sam --location-ref <value> --name <value> --location-type <value>

kf tenant decommission-location

Terminally decommission a Location.

Terminally decommission a Location. Sets status=DECOMMISSIONED, stamps decommissionedOn and closedOn, emits location.decommissioned. Optimistic concurrency on expectedVersion. Approval required because decommissioning is irreversible and removes the site from routing eligibility.

FlagRequiredDescription
--tenant <id>yesTarget tenant id.
--environment <id>noTarget environment id; defaults to the active profile environment.
--actor-type <type>yesActor type (USER, SYSTEM, CONNECTOR, AGENT, SERVICE).
--actor-id <id>yesActor id.
--idempotency-key <key>noIdempotency key for safe retries. Generated when omitted.
--location-id <value>yesLocation id.
--reason <value>noReason.
--closed-on <value>noClosed on.
--decommissioned-on <value>noDecommissioned on.
--expected-version <value>yesExpected version.

Example

kf tenant decommission-location --tenant tnt_demo --actor-type USER --actor-id usr_sam --location-id <value> --expected-version <value>

kf tenant define-feed

Register a typed FeedDefinition catalog row.

Register a typed FeedDefinition catalog row. Tenant-scoped (or platform-shared via tenant_id '*') uniqueness on feedKey. Carries eventTypes, payload schema reference and version, requiredScopes, riskClass, default backpressure mode, and replay window. Idempotent by metadata.idempotencyKey; replays return the prior receipt and reject keys reused for a different explicit feedDefinitionId. Subscription lifecycle ships in Phase 3+.

FlagRequiredDescription
--tenant <id>yesTarget tenant id.
--environment <id>noTarget environment id; defaults to the active profile environment.
--actor-type <type>yesActor type (USER, SYSTEM, CONNECTOR, AGENT, SERVICE).
--actor-id <id>yesActor id.
--idempotency-key <key>noIdempotency key for safe retries. Generated when omitted.
--feed-definition-id <value>noFeed definition id.
--feed-key <value>yesFeed key.
--name <value>yesName.
--description <value>noDescription.
--domain-scope <value>noDomain scope.
--event-types <value>yesEvent types.
--payload-schema-ref <value>yesPayload schema ref.
--payload-version <value>noPayload version.
--required-scopes <value>noRequired scopes.
--risk-class <value>yesRisk class.
--default-backpressure-mode <value>yesDefault backpressure mode.
--replay-window-seconds <value>noReplay window seconds.

Example

kf tenant define-feed --tenant tnt_demo --actor-type USER --actor-id usr_sam --feed-key <value> --name <value> --event-types <value> --payload-schema-ref <value> --risk-class <value> --default-backpressure-mode <value>

kf tenant delete-custom-field

Delete, tombstone, or redact a typed custom field with an auditable command receipt and CustomFieldDeleted event.

Delete, tombstone, or redact a typed custom field with an auditable command receipt and CustomFieldDeleted event. Scoped by tenant and environment.

FlagRequiredDescription
--tenant <id>yesTarget tenant id.
--environment <id>noTarget environment id; defaults to the active profile environment.
--actor-type <type>yesActor type (USER, SYSTEM, CONNECTOR, AGENT, SERVICE).
--actor-id <id>yesActor id.
--idempotency-key <key>noIdempotency key for safe retries. Generated when omitted.
--entity-type <value>yesEntity type.
--entity-id <value>yesEntity id.
--field-key <value>yesField key.
--mode <value>noMode.
--reason-code <value>noReason code.
--expected-version <value>noExpected version.

Example

kf tenant delete-custom-field --tenant tnt_demo --actor-type USER --actor-id usr_sam --entity-type <value> --entity-id <value> --field-key <value>

kf tenant deprecate-feed-definition

Mark a FeedDefinition deprecated.

Mark a FeedDefinition deprecated. Phase 2 records deprecation through the emitted event audit trail (no schema change to feed_definitions). Optional replacementFeedKey hint. Optimistic concurrency on expectedVersion; the row's version bumps so future operations see the marker. Subscription dispatch will refuse new subs to deprecated feeds when subscription lifecycle commands land.

FlagRequiredDescription
--tenant <id>yesTarget tenant id.
--environment <id>noTarget environment id; defaults to the active profile environment.
--actor-type <type>yesActor type (USER, SYSTEM, CONNECTOR, AGENT, SERVICE).
--actor-id <id>yesActor id.
--idempotency-key <key>noIdempotency key for safe retries. Generated when omitted.
--feed-definition-id <value>yesFeed definition id.
--expected-version <value>yesExpected version.
--replacement-feed-key <value>noReplacement feed key.

Example

kf tenant deprecate-feed-definition --tenant tnt_demo --actor-type USER --actor-id usr_sam --feed-definition-id <value> --expected-version <value>

kf tenant dismiss-admin-broadcast-delivery

Record recipient dismissal for one app feed delivery.

Record recipient dismissal for one app feed delivery. Version-checked and idempotent; user actors can dismiss only their own delivery unless they hold admin broadcast authority.

FlagRequiredDescription
--tenant <id>yesTarget tenant id.
--environment <id>noTarget environment id; defaults to the active profile environment.
--actor-type <type>yesActor type (USER, SYSTEM, CONNECTOR, AGENT, SERVICE).
--actor-id <id>yesActor id.
--idempotency-key <key>noIdempotency key for safe retries. Generated when omitted.
--delivery-id <value>yesDelivery id.
--expected-version <value>yesExpected version.
--web-session-id <value>noWeb session id.
--app-user-session-id <value>noApp user session id.

Example

kf tenant dismiss-admin-broadcast-delivery --tenant tnt_demo --actor-type USER --actor-id usr_sam --delivery-id <value> --expected-version <value>

kf tenant extend-trial

Self-serve trial extension.

Self-serve trial extension. Single-shot per trial: bumps trial_expires_on and trial_purges_on by +7 days, sets trial_extension_used=true, emits trial.tenant.extended. Refuses on non-trial tenants and on tenants whose purge horizon has already passed. Idempotent: subsequent calls return the current horizons with alreadyExtended=true rather than granting a second extension.

FlagRequiredDescription
--tenant <id>yesTarget tenant id.
--environment <id>noTarget environment id; defaults to the active profile environment.
--actor-type <type>yesActor type (USER, SYSTEM, CONNECTOR, AGENT, SERVICE).
--actor-id <id>yesActor id.
--idempotency-key <key>noIdempotency key for safe retries. Generated when omitted.

Example

kf tenant extend-trial --tenant tnt_demo --actor-type USER --actor-id usr_sam

kf tenant freeze-trial

Flip a trial tenant from ACTIVE to FROZEN at day 14 (read-only state).

Flip a trial tenant from ACTIVE to FROZEN at day 14 (read-only state). SYSTEM-only; called by the scheduler-worker when trial_expires_on &lt;= now() on a trial=true tenant. Existing auth checks already reject sessions on non-ACTIVE tenants, which gives the read-only effect for free. Idempotent on already-frozen tenants. Refuses on non-trial or DEACTIVATED tenants.

FlagRequiredDescription
--tenant <id>yesTarget tenant id.
--environment <id>noTarget environment id; defaults to the active profile environment.
--actor-type <type>yesActor type (USER, SYSTEM, CONNECTOR, AGENT, SERVICE).
--actor-id <id>yesActor id.
--idempotency-key <key>noIdempotency key for safe retries. Generated when omitted.
--reason <value>yesReason.

Example

kf tenant freeze-trial --tenant tnt_demo --actor-type USER --actor-id usr_sam --reason <value>

kf tenant issue-partner-widget-token

Issue a short-lived, environment-pinned signed token for a partner embed widget.

Issue a short-lived, environment-pinned signed token for a partner embed widget. The raw bearer token is returned once; command receipts and events persist only sanitized metadata. Approval-gated: the approval is bound to commandType=IssuePartnerWidgetToken and resourceId=&lt;tenantId&gt;:&lt;environmentId&gt;, with a 1h TTL. Disposition A per the internal implementation notes.

FlagRequiredDescription
--tenant <id>yesTarget tenant id.
--environment <id>noTarget environment id; defaults to the active profile environment.
--actor-type <type>yesActor type (USER, SYSTEM, CONNECTOR, AGENT, SERVICE).
--actor-id <id>yesActor id.
--idempotency-key <key>noIdempotency key for safe retries. Generated when omitted.
--scope <value>noScope.
--widget <value>noWidget.
--expires-in-seconds <value>noExpires in seconds.

Example

kf tenant issue-partner-widget-token --tenant tnt_demo --actor-type USER --actor-id usr_sam

kf tenant mark-admin-broadcast-delivery-delivered

Mark one queued app feed delivery as delivered for the recipient app surface.

Mark one queued app feed delivery as delivered for the recipient app surface. Version-checked and idempotent; user actors can update only their own delivery unless they hold admin broadcast authority.

FlagRequiredDescription
--tenant <id>yesTarget tenant id.
--environment <id>noTarget environment id; defaults to the active profile environment.
--actor-type <type>yesActor type (USER, SYSTEM, CONNECTOR, AGENT, SERVICE).
--actor-id <id>yesActor id.
--idempotency-key <key>noIdempotency key for safe retries. Generated when omitted.
--delivery-id <value>yesDelivery id.
--expected-version <value>yesExpected version.
--web-session-id <value>noWeb session id.
--app-user-session-id <value>noApp user session id.

Example

kf tenant mark-admin-broadcast-delivery-delivered --tenant tnt_demo --actor-type USER --actor-id usr_sam --delivery-id <value> --expected-version <value>

kf tenant promote-config

Copy an approved tenant-config value from a source environment to a target environment (e.g., sandbox -&gt; prod) with full receipt, history row, and linked audit event.

Copy an approved tenant-config value from a source environment to a target environment (e.g., sandbox -&gt; prod) with full receipt, history row, and linked audit event. Source and target environments must differ; target must be ACTIVE.

FlagRequiredDescription
--tenant <id>yesTarget tenant id.
--environment <id>noTarget environment id; defaults to the active profile environment.
--actor-type <type>yesActor type (USER, SYSTEM, CONNECTOR, AGENT, SERVICE).
--actor-id <id>yesActor id.
--idempotency-key <key>noIdempotency key for safe retries. Generated when omitted.
--source-environment-id <value>yesSource environment id.
--target-environment-id <value>yesTarget environment id.
--config-keys <value>noConfig keys.

Example

kf tenant promote-config --tenant tnt_demo --actor-type USER --actor-id usr_sam --source-environment-id <value> --target-environment-id <value>

kf tenant record-app-user-session-heartbeat

Record or refresh one active app user session for app and tenant-admin visibility.

Record or refresh one active app user session for app and tenant-admin visibility. User actors can record only their own web session unless they hold admin activity authority. Event payloads omit user agent and IP hash.

FlagRequiredDescription
--tenant <id>yesTarget tenant id.
--environment <id>noTarget environment id; defaults to the active profile environment.
--actor-type <type>yesActor type (USER, SYSTEM, CONNECTOR, AGENT, SERVICE).
--actor-id <id>yesActor id.
--idempotency-key <key>noIdempotency key for safe retries. Generated when omitted.
--web-session-id <value>yesWeb session id.
--app-installation-id <value>noApp installation id.
--app-id <value>noApp id.
--app-surface <value>yesApp surface.
--device-type <value>noDevice type.
--device-label <value>noDevice label.
--browser-name <value>noBrowser name.
--os-name <value>noOs name.
--user-agent <value>noUser agent.
--ip-hash <value>noIp hash.
--occurred-on <value>noISO date/time

Example

kf tenant record-app-user-session-heartbeat --tenant tnt_demo --actor-type USER --actor-id usr_sam --web-session-id <value> --app-surface <value>

kf tenant revoke-api-key

Immediately revoke an active environment API key.

Immediately revoke an active environment API key. Revoked keys fail runtime authentication and leave a command receipt plus api_key.revoked event.

FlagRequiredDescription
--tenant <id>yesTarget tenant id.
--environment <id>noTarget environment id; defaults to the active profile environment.
--actor-type <type>yesActor type (USER, SYSTEM, CONNECTOR, AGENT, SERVICE).
--actor-id <id>yesActor id.
--idempotency-key <key>noIdempotency key for safe retries. Generated when omitted.
--api-key-id-stdinyesRead Api key id. from stdin.
--expected-version <value>yesExpected version.
--reason <value>yesReason.

Example

kf tenant revoke-api-key --tenant tnt_demo --actor-type USER --actor-id usr_sam --api-key-id-stdin --expected-version <value> --reason <value>

kf tenant rollback-feed-definition

Roll a FeedDefinition's payload_version back to a prior value (target must be strictly less than current).

Roll a FeedDefinition's payload_version back to a prior value (target must be strictly less than current). Optimistic concurrency on expectedVersion. Carries a reasonCode for audit. Forward rolls are rejected; use UpdateFeedDefinition to advance.

FlagRequiredDescription
--tenant <id>yesTarget tenant id.
--environment <id>noTarget environment id; defaults to the active profile environment.
--actor-type <type>yesActor type (USER, SYSTEM, CONNECTOR, AGENT, SERVICE).
--actor-id <id>yesActor id.
--idempotency-key <key>noIdempotency key for safe retries. Generated when omitted.
--feed-definition-id <value>yesFeed definition id.
--target-payload-version <value>yesTarget payload version.
--expected-version <value>yesExpected version.
--reason-code <value>yesReason code.

Example

kf tenant rollback-feed-definition --tenant tnt_demo --actor-type USER --actor-id usr_sam --feed-definition-id <value> --target-payload-version <value> --expected-version <value> --reason-code <value>

kf tenant rotate-api-key

Rotate an active environment API key.

Rotate an active environment API key. Marks the previous key as ROTATED, creates a new key with the same subject and scopes, and returns the new secret once.

FlagRequiredDescription
--tenant <id>yesTarget tenant id.
--environment <id>noTarget environment id; defaults to the active profile environment.
--actor-type <type>yesActor type (USER, SYSTEM, CONNECTOR, AGENT, SERVICE).
--actor-id <id>yesActor id.
--idempotency-key <key>noIdempotency key for safe retries. Generated when omitted.
--api-key-id-stdinyesRead Api key id. from stdin.
--expected-version <value>yesExpected version.
--display-name <value>noDisplay name.
--expires-on <value>noExpires on.

Example

kf tenant rotate-api-key --tenant tnt_demo --actor-type USER --actor-id usr_sam --api-key-id-stdin --expected-version <value>

kf tenant send-admin-broadcast

Send a tenant-admin app feed item to active app users by tenant, app, role, or user target.

Send a tenant-admin app feed item to active app users by tenant, app, role, or user target. Stores content, category, badge, CTA, and trigger refs on admin_broadcasts, creates delivery rows, and emits only sanitized target and feed facts.

FlagRequiredDescription
--tenant <id>yesTarget tenant id.
--environment <id>noTarget environment id; defaults to the active profile environment.
--actor-type <type>yesActor type (USER, SYSTEM, CONNECTOR, AGENT, SERVICE).
--actor-id <id>yesActor id.
--idempotency-key <key>noIdempotency key for safe retries. Generated when omitted.
--title <value>yesTitle.
--body <value>yesBody.
--severity <value>noSeverity.
--feed-category <value>noFeed category.
--feed-badge-label <value>noFeed badge label.
--feed-badge-tone <value>noFeed badge tone.
--action-label <value>noAction label.
--action-url <value>noAction url.
--action-route-ref <value>noAction route ref.
--action-payload <value>noAction payload.
--source-app-installation-id <value>noSource app installation id.
--source-event-id <value>noSource event id.
--trigger-event-type <value>noTrigger event type.
--trigger-entity-type <value>noTrigger entity type.
--trigger-entity-id <value>noTrigger entity id.
--feed-metadata <value>noFeed metadata.
--target-scope <value>noTarget scope.
--target-app-installation-id <value>noTarget app installation id.
--target-role <value>noTarget role.
--target-user-id <value>noTarget user id.
--expires-on <value>noISO date/time

Example

kf tenant send-admin-broadcast --tenant tnt_demo --actor-type USER --actor-id usr_sam --title <value> --body <value>

kf tenant transition-location-status

Transition a Location between ACTIVE and INACTIVE with optimistic concurrency on expectedVersion.

Transition a Location between ACTIVE and INACTIVE with optimistic concurrency on expectedVersion. Emits location.inactivated or location.reactivated.

FlagRequiredDescription
--tenant <id>yesTarget tenant id.
--environment <id>noTarget environment id; defaults to the active profile environment.
--actor-type <type>yesActor type (USER, SYSTEM, CONNECTOR, AGENT, SERVICE).
--actor-id <id>yesActor id.
--idempotency-key <key>noIdempotency key for safe retries. Generated when omitted.
--location-id <value>yesLocation id.
--target-status <value>yesTarget status.
--expected-version <value>yesExpected version.

Example

kf tenant transition-location-status --tenant tnt_demo --actor-type USER --actor-id usr_sam --location-id <value> --target-status <value> --expected-version <value>

kf tenant update-config

Update mutable tenant configuration: shallow-merge feature flags, write policy overrides and channel defaults through tenant_configs sidecars.

Update mutable tenant configuration: shallow-merge feature flags, write policy overrides and channel defaults through tenant_configs sidecars. Version-CAS on the tenants row.

FlagRequiredDescription
--tenant <id>yesTarget tenant id.
--environment <id>noTarget environment id; defaults to the active profile environment.
--actor-type <type>yesActor type (USER, SYSTEM, CONNECTOR, AGENT, SERVICE).
--actor-id <id>yesActor id.
--idempotency-key <key>noIdempotency key for safe retries. Generated when omitted.
--feature-flags <value>noFeature flags.
--policy-overrides <value>noPolicy overrides.
--channel-defaults <value>noChannel defaults.
--expected-version <value>yesExpected version.

Example

kf tenant update-config --tenant tnt_demo --actor-type USER --actor-id usr_sam --expected-version <value>

kf tenant update-feed-definition

Update a FeedDefinition's mutable fields (name, description, domainScope, eventTypes, payloadSchemaRef, payloadVersion, requiredScopes, riskClass, defaultBackpressureMode, replayWindowSeconds).

Update a FeedDefinition's mutable fields (name, description, domainScope, eventTypes, payloadSchemaRef, payloadVersion, requiredScopes, riskClass, defaultBackpressureMode, replayWindowSeconds). Optimistic concurrency on expectedVersion. Records the changed-field set and the old/new payloadVersion in the emitted event so subscribers can negotiate schema changes.

FlagRequiredDescription
--tenant <id>yesTarget tenant id.
--environment <id>noTarget environment id; defaults to the active profile environment.
--actor-type <type>yesActor type (USER, SYSTEM, CONNECTOR, AGENT, SERVICE).
--actor-id <id>yesActor id.
--idempotency-key <key>noIdempotency key for safe retries. Generated when omitted.

Example

kf tenant update-feed-definition --tenant tnt_demo --actor-type USER --actor-id usr_sam

kf tenant update-location

Update a Location's mutable fields (locationRef, name, type, fulfillment capability flags, trust level, address).

Update a Location's mutable fields (locationRef, name, type, fulfillment capability flags, trust level, address). Optimistic concurrency on expectedVersion. Status transitions belong to TransitionLocationStatus.

FlagRequiredDescription
--tenant <id>yesTarget tenant id.
--environment <id>noTarget environment id; defaults to the active profile environment.
--actor-type <type>yesActor type (USER, SYSTEM, CONNECTOR, AGENT, SERVICE).
--actor-id <id>yesActor id.
--idempotency-key <key>noIdempotency key for safe retries. Generated when omitted.
--location-id <value>yesLocation id.
--location-ref <value>noLocation ref.
--name <value>noName.
--location-type <value>noLocation type.
--pickup-enabled <value>noPickup enabled.
--ship-from-store-enabled <value>noShip from store enabled.
--service-enabled <value>noService enabled.
--trust-level <value>noTrust level.
--country <value>noCountry.
--state <value>noState.
--city <value>noCity.
--postal-code <value>noPostal code.
--address-line1 <value>noAddress line1.
--address-line2 <value>noAddress line2.
--region-code <value>noRegion code.
--latitude <value>noLatitude.
--longitude <value>noLongitude.
--time-zone <value>noTime zone.
--handling-cutoff-local-time <value>noHandling cutoff local time.
--phone <value>noPhone.
--email <value>noEmail.
--contact-party-id <value>noContact party id.
--lot-tracking-enabled <value>noLot tracking enabled.
--serial-tracking-enabled <value>noSerial tracking enabled.
--temperature-controlled <value>noTemperature controlled.
--hazmat-certified <value>noHazmat certified.
--alcohol-licensed <value>noAlcohol licensed.
--cold-chain <value>noCold chain.
--cross-dock-capable <value>noCross dock capable.
--is-return-destination <value>noIs return destination.
--is-transfer-destination <value>noIs transfer destination.
--capacity-units <value>noCapacity units.
--capacity-pallets <value>noCapacity pallets.
--capacity-sq-ft <value>noCapacity sq ft.
--parent-location-id <value>noParent location id.
--tax-jurisdiction-ref <value>noTax jurisdiction ref.
--opened-on <value>noOpened on.
--closed-on <value>noClosed on.
--custom-fields <value>nonot accepted for this command
--expected-version <value>yesExpected version.

Example

kf tenant update-location --tenant tnt_demo --actor-type USER --actor-id usr_sam --location-id <value> --expected-version <value>

kf tenant upsert-bundle-allocation-policy

Create or update a per-tenant per-environment BundleAllocationPolicy controlling substitution mode (NEVER/ON_FAILURE_WITH_APPROVAL/AUTO_IF_PREDICATE_MATCHES), partial-fulfillment mode, reservation timeout, and overbooking policy.

Create or update a per-tenant per-environment BundleAllocationPolicy controlling substitution mode (NEVER/ON_FAILURE_WITH_APPROVAL/AUTO_IF_PREDICATE_MATCHES), partial-fulfillment mode, reservation timeout, and overbooking policy. Default policy denies substitution and partial fulfillment until tenants opt in.

FlagRequiredDescription
--tenant <id>yesTarget tenant id.
--environment <id>noTarget environment id; defaults to the active profile environment.
--actor-type <type>yesActor type (USER, SYSTEM, CONNECTOR, AGENT, SERVICE).
--actor-id <id>yesActor id.
--idempotency-key <key>noIdempotency key for safe retries. Generated when omitted.
--policy-key <value>yesPolicy key.
--substitution-mode <value>yesSubstitution mode.
--partial-fulfillment-mode <value>yesPartial fulfillment mode.
--reservation-timeout-minutes <value>noReservation timeout minutes.
--overbooking-policy <value>noOverbooking policy.
--overbooking-config <value>noOverbooking config.

Example

kf tenant upsert-bundle-allocation-policy --tenant tnt_demo --actor-type USER --actor-id usr_sam --policy-key <value> --substitution-mode <value> --partial-fulfillment-mode <value>

kf tenant upsert-config

Create or update a tenant-scoped configuration entry.

Create or update a tenant-scoped configuration entry. Skills, policy, and UI read from this for per-tenant behavior.

FlagRequiredDescription
--tenant <id>yesTarget tenant id.
--environment <id>noTarget environment id; defaults to the active profile environment.
--actor-type <type>yesActor type (USER, SYSTEM, CONNECTOR, AGENT, SERVICE).
--actor-id <id>yesActor id.
--idempotency-key <key>noIdempotency key for safe retries. Generated when omitted.
--config-key <value>yesConfig key.
--value <value>yesValue.
--description <value>noDescription.
--expected-version <value>yesExpected version.

Example

kf tenant upsert-config --tenant tnt_demo --actor-type USER --actor-id usr_sam --config-key <value> --value <value> --expected-version <value>

kf tenant upsert-custom-field

Create or update a typed custom field against a canonical entity (ProductVariant, InventoryLevel, Location, and peers).

Create or update a typed custom field against a canonical entity (ProductVariant, InventoryLevel, Location, and peers). Validates namespace authority before writing and rejects unknown namespaces. Idempotent per metadata.idempotencyKey.

FlagRequiredDescription
--tenant <id>yesTarget tenant id.
--environment <id>noTarget environment id; defaults to the active profile environment.
--actor-type <type>yesActor type (USER, SYSTEM, CONNECTOR, AGENT, SERVICE).
--actor-id <id>yesActor id.
--idempotency-key <key>noIdempotency key for safe retries. Generated when omitted.
--entity-type <value>yesEntity type.
--entity-id <value>yesEntity id.
--namespace <value>yesNamespace.
--key <value>yesKey.
--value-type <value>yesValue type.
--string-value <value>noString value.
--number-value <value>noNumber value.
--boolean-value <value>noBoolean value.
--date-value <value>noDate value.
--json-value <value>noJson value.
--field-group <value>noField group.
--is-indexed <value>noIs indexed.
--source-system <value>noSource system.
--expected-version <value>noExpected version.

Example

kf tenant upsert-custom-field --tenant tnt_demo --actor-type USER --actor-id usr_sam --entity-type <value> --entity-id <value> --namespace <value> --key <value> --value-type <value>

kf tenant upsert-environment

Create or update a tenant environment and its deployment routing profile.

Create or update a tenant environment and its deployment routing profile. This is the command-backed control-plane seam for tenant, lifecycle environment, and physical deployment isolation.

FlagRequiredDescription
--tenant <id>yesTarget tenant id.
--environment <id>noTarget environment id; defaults to the active profile environment.
--actor-type <type>yesActor type (USER, SYSTEM, CONNECTOR, AGENT, SERVICE).
--actor-id <id>yesActor id.
--idempotency-key <key>noIdempotency key for safe retries. Generated when omitted.
--environment-key <value>noEnvironment key.
--environment-type <value>yesEnvironment type.
--name <value>noName.
--status <value>noStatus.
--lifecycle-stage <value>noLifecycle stage.
--data-classification <value>noData classification.
--source-environment-id <value>noSource environment id.
--promotion-policy-ref <value>noPromotion policy ref.
--retention-policy-ref <value>noRetention policy ref.
--deletion-policy-ref <value>noDeletion policy ref.
--environment-metadata <value>noEnvironment metadata.
--expected-environment-version <value>yesExpected environment version.
--deployment <value>noDeployment.

Example

kf tenant upsert-environment --tenant tnt_demo --actor-type USER --actor-id usr_sam --environment-type <value> --expected-environment-version <value>

kf tenant upsert-location-operating-exception

Create or update a single calendar-date operating-hours override for a Location (holiday closure or special hours).

Create or update a single calendar-date operating-hours override for a Location (holiday closure or special hours). Idempotent by metadata.idempotencyKey. Emits location.operating_exception_upserted.

FlagRequiredDescription
--tenant <id>yesTarget tenant id.
--environment <id>noTarget environment id; defaults to the active profile environment.
--actor-type <type>yesActor type (USER, SYSTEM, CONNECTOR, AGENT, SERVICE).
--actor-id <id>yesActor id.
--idempotency-key <key>noIdempotency key for safe retries. Generated when omitted.
--location-id <value>yesLocation id.
--exception-date <value>yesException date.
--is-closed <value>noIs closed.
--opens-at <value>noOpens at.
--closes-at <value>noCloses at.
--reason <value>noReason.

Example

kf tenant upsert-location-operating-exception --tenant tnt_demo --actor-type USER --actor-id usr_sam --location-id <value> --exception-date <value>

kf tenant upsert-location-operating-hours

Replace the weekly recurring operating-hours schedule for a Location atomically.

Replace the weekly recurring operating-hours schedule for a Location atomically. Accepts up to 21 (day_of_week, opens_at, closes_at, isClosed, shiftLabel?, effectiveFrom?, effectiveTo?) entries; the existing schedule is deleted and the new one inserted in one transaction. Idempotent by metadata.idempotencyKey. Emits location.operating_hours_upserted.

FlagRequiredDescription
--tenant <id>yesTarget tenant id.
--environment <id>noTarget environment id; defaults to the active profile environment.
--actor-type <type>yesActor type (USER, SYSTEM, CONNECTOR, AGENT, SERVICE).
--actor-id <id>yesActor id.
--idempotency-key <key>noIdempotency key for safe retries. Generated when omitted.
--location-id <value>yesLocation id.
--expected-version <value>yesExpected version.
--hours <value>yesHours.

Example

kf tenant upsert-location-operating-hours --tenant tnt_demo --actor-type USER --actor-id usr_sam --location-id <value> --expected-version <value> --hours <value>
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