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.
| Flag | Required | Description |
|---|---|---|
--tenant <id> | yes | Target tenant id. |
--environment <id> | no | Target environment id; defaults to the active profile environment. |
--actor-type <type> | yes | Actor type (USER, SYSTEM, CONNECTOR, AGENT, SERVICE). |
--actor-id <id> | yes | Actor id. |
--idempotency-key <key> | no | Idempotency key for safe retries. Generated when omitted. |
--delivery-id <value> | yes | Delivery id. |
--expected-version <value> | yes | Expected version. |
--web-session-id <value> | no | Web session id. |
--app-user-session-id <value> | no | App 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.
| Flag | Required | Description |
|---|---|---|
--tenant <id> | yes | Target tenant id. |
--environment <id> | no | Target environment id; defaults to the active profile environment. |
--actor-type <type> | yes | Actor type (USER, SYSTEM, CONNECTOR, AGENT, SERVICE). |
--actor-id <id> | yes | Actor id. |
--idempotency-key <key> | no | Idempotency key for safe retries. Generated when omitted. |
Example
kf tenant cleanup-sample-data --tenant tnt_demo --actor-type USER --actor-id usr_samkf 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.
| Flag | Required | Description |
|---|---|---|
--tenant <id> | yes | Target tenant id. |
--environment <id> | no | Target environment id; defaults to the active profile environment. |
--actor-type <type> | yes | Actor type (USER, SYSTEM, CONNECTOR, AGENT, SERVICE). |
--actor-id <id> | yes | Actor id. |
--idempotency-key <key> | no | Idempotency key for safe retries. Generated when omitted. |
--display-name <value> | yes | Display name. |
--subject-type <value> | yes | Subject type. |
--subject-id <value> | yes | Subject id. |
--scopes <value> | no | Scopes. |
--constraints <value> | no | Constraints. |
--expires-on <value> | no | Expires 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.
| Flag | Required | Description |
|---|---|---|
--tenant <id> | yes | Target tenant id. |
--environment <id> | no | Target environment id; defaults to the active profile environment. |
--actor-type <type> | yes | Actor type (USER, SYSTEM, CONNECTOR, AGENT, SERVICE). |
--actor-id <id> | yes | Actor id. |
--idempotency-key <key> | no | Idempotency key for safe retries. Generated when omitted. |
--location-id <value> | no | Location id. |
--location-ref <value> | yes | Location ref. |
--name <value> | yes | Name. |
--location-type <value> | yes | Location type. |
--status <value> | no | Status. |
--pickup-enabled <value> | no | Pickup enabled. |
--ship-from-store-enabled <value> | no | Ship from store enabled. |
--service-enabled <value> | no | Service enabled. |
--trust-level <value> | no | Trust level. |
--country <value> | no | Country. |
--state <value> | no | State. |
--city <value> | no | City. |
--postal-code <value> | no | Postal code. |
--address-line1 <value> | no | Address line1. |
--address-line2 <value> | no | Address line2. |
--region-code <value> | no | Region code. |
--latitude <value> | no | Latitude. |
--longitude <value> | no | Longitude. |
--time-zone <value> | no | Time zone. |
--handling-cutoff-local-time <value> | no | Handling cutoff local time. |
--phone <value> | no | Phone. |
--email <value> | no | Email. |
--contact-party-id <value> | no | Contact party id. |
--lot-tracking-enabled <value> | no | Lot tracking enabled. |
--serial-tracking-enabled <value> | no | Serial tracking enabled. |
--temperature-controlled <value> | no | Temperature controlled. |
--hazmat-certified <value> | no | Hazmat certified. |
--alcohol-licensed <value> | no | Alcohol licensed. |
--cold-chain <value> | no | Cold chain. |
--cross-dock-capable <value> | no | Cross dock capable. |
--is-return-destination <value> | no | Is return destination. |
--is-transfer-destination <value> | no | Is transfer destination. |
--capacity-units <value> | no | Capacity units. |
--capacity-pallets <value> | no | Capacity pallets. |
--capacity-sq-ft <value> | no | Capacity sq ft. |
--parent-location-id <value> | no | Parent location id. |
--tax-jurisdiction-ref <value> | no | Tax jurisdiction ref. |
--opened-on <value> | no | Opened on. |
--custom-fields <value> | no | not 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.
| Flag | Required | Description |
|---|---|---|
--tenant <id> | yes | Target tenant id. |
--environment <id> | no | Target environment id; defaults to the active profile environment. |
--actor-type <type> | yes | Actor type (USER, SYSTEM, CONNECTOR, AGENT, SERVICE). |
--actor-id <id> | yes | Actor id. |
--idempotency-key <key> | no | Idempotency key for safe retries. Generated when omitted. |
--location-id <value> | yes | Location id. |
--reason <value> | no | Reason. |
--closed-on <value> | no | Closed on. |
--decommissioned-on <value> | no | Decommissioned on. |
--expected-version <value> | yes | Expected 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+.
| Flag | Required | Description |
|---|---|---|
--tenant <id> | yes | Target tenant id. |
--environment <id> | no | Target environment id; defaults to the active profile environment. |
--actor-type <type> | yes | Actor type (USER, SYSTEM, CONNECTOR, AGENT, SERVICE). |
--actor-id <id> | yes | Actor id. |
--idempotency-key <key> | no | Idempotency key for safe retries. Generated when omitted. |
--feed-definition-id <value> | no | Feed definition id. |
--feed-key <value> | yes | Feed key. |
--name <value> | yes | Name. |
--description <value> | no | Description. |
--domain-scope <value> | no | Domain scope. |
--event-types <value> | yes | Event types. |
--payload-schema-ref <value> | yes | Payload schema ref. |
--payload-version <value> | no | Payload version. |
--required-scopes <value> | no | Required scopes. |
--risk-class <value> | yes | Risk class. |
--default-backpressure-mode <value> | yes | Default backpressure mode. |
--replay-window-seconds <value> | no | Replay 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.
| Flag | Required | Description |
|---|---|---|
--tenant <id> | yes | Target tenant id. |
--environment <id> | no | Target environment id; defaults to the active profile environment. |
--actor-type <type> | yes | Actor type (USER, SYSTEM, CONNECTOR, AGENT, SERVICE). |
--actor-id <id> | yes | Actor id. |
--idempotency-key <key> | no | Idempotency key for safe retries. Generated when omitted. |
--entity-type <value> | yes | Entity type. |
--entity-id <value> | yes | Entity id. |
--field-key <value> | yes | Field key. |
--mode <value> | no | Mode. |
--reason-code <value> | no | Reason code. |
--expected-version <value> | no | Expected 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.
| Flag | Required | Description |
|---|---|---|
--tenant <id> | yes | Target tenant id. |
--environment <id> | no | Target environment id; defaults to the active profile environment. |
--actor-type <type> | yes | Actor type (USER, SYSTEM, CONNECTOR, AGENT, SERVICE). |
--actor-id <id> | yes | Actor id. |
--idempotency-key <key> | no | Idempotency key for safe retries. Generated when omitted. |
--feed-definition-id <value> | yes | Feed definition id. |
--expected-version <value> | yes | Expected version. |
--replacement-feed-key <value> | no | Replacement 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.
| Flag | Required | Description |
|---|---|---|
--tenant <id> | yes | Target tenant id. |
--environment <id> | no | Target environment id; defaults to the active profile environment. |
--actor-type <type> | yes | Actor type (USER, SYSTEM, CONNECTOR, AGENT, SERVICE). |
--actor-id <id> | yes | Actor id. |
--idempotency-key <key> | no | Idempotency key for safe retries. Generated when omitted. |
--delivery-id <value> | yes | Delivery id. |
--expected-version <value> | yes | Expected version. |
--web-session-id <value> | no | Web session id. |
--app-user-session-id <value> | no | App 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.
| Flag | Required | Description |
|---|---|---|
--tenant <id> | yes | Target tenant id. |
--environment <id> | no | Target environment id; defaults to the active profile environment. |
--actor-type <type> | yes | Actor type (USER, SYSTEM, CONNECTOR, AGENT, SERVICE). |
--actor-id <id> | yes | Actor id. |
--idempotency-key <key> | no | Idempotency key for safe retries. Generated when omitted. |
Example
kf tenant extend-trial --tenant tnt_demo --actor-type USER --actor-id usr_samkf 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 <= 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.
| Flag | Required | Description |
|---|---|---|
--tenant <id> | yes | Target tenant id. |
--environment <id> | no | Target environment id; defaults to the active profile environment. |
--actor-type <type> | yes | Actor type (USER, SYSTEM, CONNECTOR, AGENT, SERVICE). |
--actor-id <id> | yes | Actor id. |
--idempotency-key <key> | no | Idempotency key for safe retries. Generated when omitted. |
--reason <value> | yes | Reason. |
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=<tenantId>:<environmentId>, with a 1h TTL. Disposition A per the internal implementation notes.
| Flag | Required | Description |
|---|---|---|
--tenant <id> | yes | Target tenant id. |
--environment <id> | no | Target environment id; defaults to the active profile environment. |
--actor-type <type> | yes | Actor type (USER, SYSTEM, CONNECTOR, AGENT, SERVICE). |
--actor-id <id> | yes | Actor id. |
--idempotency-key <key> | no | Idempotency key for safe retries. Generated when omitted. |
--scope <value> | no | Scope. |
--widget <value> | no | Widget. |
--expires-in-seconds <value> | no | Expires in seconds. |
Example
kf tenant issue-partner-widget-token --tenant tnt_demo --actor-type USER --actor-id usr_samkf 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.
| Flag | Required | Description |
|---|---|---|
--tenant <id> | yes | Target tenant id. |
--environment <id> | no | Target environment id; defaults to the active profile environment. |
--actor-type <type> | yes | Actor type (USER, SYSTEM, CONNECTOR, AGENT, SERVICE). |
--actor-id <id> | yes | Actor id. |
--idempotency-key <key> | no | Idempotency key for safe retries. Generated when omitted. |
--delivery-id <value> | yes | Delivery id. |
--expected-version <value> | yes | Expected version. |
--web-session-id <value> | no | Web session id. |
--app-user-session-id <value> | no | App 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 -> 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 -> prod) with full receipt, history row, and linked audit event. Source and target environments must differ; target must be ACTIVE.
| Flag | Required | Description |
|---|---|---|
--tenant <id> | yes | Target tenant id. |
--environment <id> | no | Target environment id; defaults to the active profile environment. |
--actor-type <type> | yes | Actor type (USER, SYSTEM, CONNECTOR, AGENT, SERVICE). |
--actor-id <id> | yes | Actor id. |
--idempotency-key <key> | no | Idempotency key for safe retries. Generated when omitted. |
--source-environment-id <value> | yes | Source environment id. |
--target-environment-id <value> | yes | Target environment id. |
--config-keys <value> | no | Config 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.
| Flag | Required | Description |
|---|---|---|
--tenant <id> | yes | Target tenant id. |
--environment <id> | no | Target environment id; defaults to the active profile environment. |
--actor-type <type> | yes | Actor type (USER, SYSTEM, CONNECTOR, AGENT, SERVICE). |
--actor-id <id> | yes | Actor id. |
--idempotency-key <key> | no | Idempotency key for safe retries. Generated when omitted. |
--web-session-id <value> | yes | Web session id. |
--app-installation-id <value> | no | App installation id. |
--app-id <value> | no | App id. |
--app-surface <value> | yes | App surface. |
--device-type <value> | no | Device type. |
--device-label <value> | no | Device label. |
--browser-name <value> | no | Browser name. |
--os-name <value> | no | Os name. |
--user-agent <value> | no | User agent. |
--ip-hash <value> | no | Ip hash. |
--occurred-on <value> | no | ISO 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.
| Flag | Required | Description |
|---|---|---|
--tenant <id> | yes | Target tenant id. |
--environment <id> | no | Target environment id; defaults to the active profile environment. |
--actor-type <type> | yes | Actor type (USER, SYSTEM, CONNECTOR, AGENT, SERVICE). |
--actor-id <id> | yes | Actor id. |
--idempotency-key <key> | no | Idempotency key for safe retries. Generated when omitted. |
--api-key-id-stdin | yes | Read Api key id. from stdin. |
--expected-version <value> | yes | Expected version. |
--reason <value> | yes | Reason. |
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.
| Flag | Required | Description |
|---|---|---|
--tenant <id> | yes | Target tenant id. |
--environment <id> | no | Target environment id; defaults to the active profile environment. |
--actor-type <type> | yes | Actor type (USER, SYSTEM, CONNECTOR, AGENT, SERVICE). |
--actor-id <id> | yes | Actor id. |
--idempotency-key <key> | no | Idempotency key for safe retries. Generated when omitted. |
--feed-definition-id <value> | yes | Feed definition id. |
--target-payload-version <value> | yes | Target payload version. |
--expected-version <value> | yes | Expected version. |
--reason-code <value> | yes | Reason 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.
| Flag | Required | Description |
|---|---|---|
--tenant <id> | yes | Target tenant id. |
--environment <id> | no | Target environment id; defaults to the active profile environment. |
--actor-type <type> | yes | Actor type (USER, SYSTEM, CONNECTOR, AGENT, SERVICE). |
--actor-id <id> | yes | Actor id. |
--idempotency-key <key> | no | Idempotency key for safe retries. Generated when omitted. |
--api-key-id-stdin | yes | Read Api key id. from stdin. |
--expected-version <value> | yes | Expected version. |
--display-name <value> | no | Display name. |
--expires-on <value> | no | Expires 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.
| Flag | Required | Description |
|---|---|---|
--tenant <id> | yes | Target tenant id. |
--environment <id> | no | Target environment id; defaults to the active profile environment. |
--actor-type <type> | yes | Actor type (USER, SYSTEM, CONNECTOR, AGENT, SERVICE). |
--actor-id <id> | yes | Actor id. |
--idempotency-key <key> | no | Idempotency key for safe retries. Generated when omitted. |
--title <value> | yes | Title. |
--body <value> | yes | Body. |
--severity <value> | no | Severity. |
--feed-category <value> | no | Feed category. |
--feed-badge-label <value> | no | Feed badge label. |
--feed-badge-tone <value> | no | Feed badge tone. |
--action-label <value> | no | Action label. |
--action-url <value> | no | Action url. |
--action-route-ref <value> | no | Action route ref. |
--action-payload <value> | no | Action payload. |
--source-app-installation-id <value> | no | Source app installation id. |
--source-event-id <value> | no | Source event id. |
--trigger-event-type <value> | no | Trigger event type. |
--trigger-entity-type <value> | no | Trigger entity type. |
--trigger-entity-id <value> | no | Trigger entity id. |
--feed-metadata <value> | no | Feed metadata. |
--target-scope <value> | no | Target scope. |
--target-app-installation-id <value> | no | Target app installation id. |
--target-role <value> | no | Target role. |
--target-user-id <value> | no | Target user id. |
--expires-on <value> | no | ISO 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.
| Flag | Required | Description |
|---|---|---|
--tenant <id> | yes | Target tenant id. |
--environment <id> | no | Target environment id; defaults to the active profile environment. |
--actor-type <type> | yes | Actor type (USER, SYSTEM, CONNECTOR, AGENT, SERVICE). |
--actor-id <id> | yes | Actor id. |
--idempotency-key <key> | no | Idempotency key for safe retries. Generated when omitted. |
--location-id <value> | yes | Location id. |
--target-status <value> | yes | Target status. |
--expected-version <value> | yes | Expected 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.
| Flag | Required | Description |
|---|---|---|
--tenant <id> | yes | Target tenant id. |
--environment <id> | no | Target environment id; defaults to the active profile environment. |
--actor-type <type> | yes | Actor type (USER, SYSTEM, CONNECTOR, AGENT, SERVICE). |
--actor-id <id> | yes | Actor id. |
--idempotency-key <key> | no | Idempotency key for safe retries. Generated when omitted. |
--feature-flags <value> | no | Feature flags. |
--policy-overrides <value> | no | Policy overrides. |
--channel-defaults <value> | no | Channel defaults. |
--expected-version <value> | yes | Expected 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.
| Flag | Required | Description |
|---|---|---|
--tenant <id> | yes | Target tenant id. |
--environment <id> | no | Target environment id; defaults to the active profile environment. |
--actor-type <type> | yes | Actor type (USER, SYSTEM, CONNECTOR, AGENT, SERVICE). |
--actor-id <id> | yes | Actor id. |
--idempotency-key <key> | no | Idempotency key for safe retries. Generated when omitted. |
Example
kf tenant update-feed-definition --tenant tnt_demo --actor-type USER --actor-id usr_samkf 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.
| Flag | Required | Description |
|---|---|---|
--tenant <id> | yes | Target tenant id. |
--environment <id> | no | Target environment id; defaults to the active profile environment. |
--actor-type <type> | yes | Actor type (USER, SYSTEM, CONNECTOR, AGENT, SERVICE). |
--actor-id <id> | yes | Actor id. |
--idempotency-key <key> | no | Idempotency key for safe retries. Generated when omitted. |
--location-id <value> | yes | Location id. |
--location-ref <value> | no | Location ref. |
--name <value> | no | Name. |
--location-type <value> | no | Location type. |
--pickup-enabled <value> | no | Pickup enabled. |
--ship-from-store-enabled <value> | no | Ship from store enabled. |
--service-enabled <value> | no | Service enabled. |
--trust-level <value> | no | Trust level. |
--country <value> | no | Country. |
--state <value> | no | State. |
--city <value> | no | City. |
--postal-code <value> | no | Postal code. |
--address-line1 <value> | no | Address line1. |
--address-line2 <value> | no | Address line2. |
--region-code <value> | no | Region code. |
--latitude <value> | no | Latitude. |
--longitude <value> | no | Longitude. |
--time-zone <value> | no | Time zone. |
--handling-cutoff-local-time <value> | no | Handling cutoff local time. |
--phone <value> | no | Phone. |
--email <value> | no | Email. |
--contact-party-id <value> | no | Contact party id. |
--lot-tracking-enabled <value> | no | Lot tracking enabled. |
--serial-tracking-enabled <value> | no | Serial tracking enabled. |
--temperature-controlled <value> | no | Temperature controlled. |
--hazmat-certified <value> | no | Hazmat certified. |
--alcohol-licensed <value> | no | Alcohol licensed. |
--cold-chain <value> | no | Cold chain. |
--cross-dock-capable <value> | no | Cross dock capable. |
--is-return-destination <value> | no | Is return destination. |
--is-transfer-destination <value> | no | Is transfer destination. |
--capacity-units <value> | no | Capacity units. |
--capacity-pallets <value> | no | Capacity pallets. |
--capacity-sq-ft <value> | no | Capacity sq ft. |
--parent-location-id <value> | no | Parent location id. |
--tax-jurisdiction-ref <value> | no | Tax jurisdiction ref. |
--opened-on <value> | no | Opened on. |
--closed-on <value> | no | Closed on. |
--custom-fields <value> | no | not accepted for this command |
--expected-version <value> | yes | Expected 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.
| Flag | Required | Description |
|---|---|---|
--tenant <id> | yes | Target tenant id. |
--environment <id> | no | Target environment id; defaults to the active profile environment. |
--actor-type <type> | yes | Actor type (USER, SYSTEM, CONNECTOR, AGENT, SERVICE). |
--actor-id <id> | yes | Actor id. |
--idempotency-key <key> | no | Idempotency key for safe retries. Generated when omitted. |
--policy-key <value> | yes | Policy key. |
--substitution-mode <value> | yes | Substitution mode. |
--partial-fulfillment-mode <value> | yes | Partial fulfillment mode. |
--reservation-timeout-minutes <value> | no | Reservation timeout minutes. |
--overbooking-policy <value> | no | Overbooking policy. |
--overbooking-config <value> | no | Overbooking 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.
| Flag | Required | Description |
|---|---|---|
--tenant <id> | yes | Target tenant id. |
--environment <id> | no | Target environment id; defaults to the active profile environment. |
--actor-type <type> | yes | Actor type (USER, SYSTEM, CONNECTOR, AGENT, SERVICE). |
--actor-id <id> | yes | Actor id. |
--idempotency-key <key> | no | Idempotency key for safe retries. Generated when omitted. |
--config-key <value> | yes | Config key. |
--value <value> | yes | Value. |
--description <value> | no | Description. |
--expected-version <value> | yes | Expected 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.
| Flag | Required | Description |
|---|---|---|
--tenant <id> | yes | Target tenant id. |
--environment <id> | no | Target environment id; defaults to the active profile environment. |
--actor-type <type> | yes | Actor type (USER, SYSTEM, CONNECTOR, AGENT, SERVICE). |
--actor-id <id> | yes | Actor id. |
--idempotency-key <key> | no | Idempotency key for safe retries. Generated when omitted. |
--entity-type <value> | yes | Entity type. |
--entity-id <value> | yes | Entity id. |
--namespace <value> | yes | Namespace. |
--key <value> | yes | Key. |
--value-type <value> | yes | Value type. |
--string-value <value> | no | String value. |
--number-value <value> | no | Number value. |
--boolean-value <value> | no | Boolean value. |
--date-value <value> | no | Date value. |
--json-value <value> | no | Json value. |
--field-group <value> | no | Field group. |
--is-indexed <value> | no | Is indexed. |
--source-system <value> | no | Source system. |
--expected-version <value> | no | Expected 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.
| Flag | Required | Description |
|---|---|---|
--tenant <id> | yes | Target tenant id. |
--environment <id> | no | Target environment id; defaults to the active profile environment. |
--actor-type <type> | yes | Actor type (USER, SYSTEM, CONNECTOR, AGENT, SERVICE). |
--actor-id <id> | yes | Actor id. |
--idempotency-key <key> | no | Idempotency key for safe retries. Generated when omitted. |
--environment-key <value> | no | Environment key. |
--environment-type <value> | yes | Environment type. |
--name <value> | no | Name. |
--status <value> | no | Status. |
--lifecycle-stage <value> | no | Lifecycle stage. |
--data-classification <value> | no | Data classification. |
--source-environment-id <value> | no | Source environment id. |
--promotion-policy-ref <value> | no | Promotion policy ref. |
--retention-policy-ref <value> | no | Retention policy ref. |
--deletion-policy-ref <value> | no | Deletion policy ref. |
--environment-metadata <value> | no | Environment metadata. |
--expected-environment-version <value> | yes | Expected environment version. |
--deployment <value> | no | Deployment. |
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.
| Flag | Required | Description |
|---|---|---|
--tenant <id> | yes | Target tenant id. |
--environment <id> | no | Target environment id; defaults to the active profile environment. |
--actor-type <type> | yes | Actor type (USER, SYSTEM, CONNECTOR, AGENT, SERVICE). |
--actor-id <id> | yes | Actor id. |
--idempotency-key <key> | no | Idempotency key for safe retries. Generated when omitted. |
--location-id <value> | yes | Location id. |
--exception-date <value> | yes | Exception date. |
--is-closed <value> | no | Is closed. |
--opens-at <value> | no | Opens at. |
--closes-at <value> | no | Closes at. |
--reason <value> | no | Reason. |
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.
| Flag | Required | Description |
|---|---|---|
--tenant <id> | yes | Target tenant id. |
--environment <id> | no | Target environment id; defaults to the active profile environment. |
--actor-type <type> | yes | Actor type (USER, SYSTEM, CONNECTOR, AGENT, SERVICE). |
--actor-id <id> | yes | Actor id. |
--idempotency-key <key> | no | Idempotency key for safe retries. Generated when omitted. |
--location-id <value> | yes | Location id. |
--expected-version <value> | yes | Expected version. |
--hours <value> | yes | Hours. |
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>