所有命令 · workspace

pm workspace schema

Manage types, statuses, fields, presets, and workflow policies.

Manage types, statuses, fields, presets, and workflow policies.

用法

pm workspace schema [options] <subcommand> [name]

参数

<subcommand>Required; schema verb (list/show, add/remove, rename/remap, policy-*), or custom type shorthand必填
<name>Definition/source name or item id; policy-mode: advise|refuse可选

选项

--definition <json>Policy or proposed fields JSON可选
--policy <id>Policy id for policy-approve可选
--message <text>Audit rationale for a policy mutation可选
--description <text>Type, status, or field description可选
--default-status <status>Default status for this type可选
--folder <dir>Storage folder for items of this custom type可选
--role <value>Lifecycle role for a custom status (repeatable): draft, active, blocked, terminal, terminal_done, terminal_canceled, default_open, default_close, default_cancel可选
--order <n>Display/sort order for a custom status可选
--type <type>Value type for a custom field (add-field): string, number, boolean, string_array, array, object可选
--commands <list>Field commands (repeatable/csv): create, update, update_many, list, search, calendar, context可选
--cli-flag <flag>Override the auto-derived CLI flag for a custom field (add-field)可选
--requiredMark a custom field as always required (add-field)可选
--required-on-createMark a custom field as required at create time (add-field)可选
--no-allow-unsetDisallow clearing a custom field via --unset (add-field)可选
--required-types <list>Restrict a custom field's requirement to specific item types (add-field; repeatable, comma-friendly)可选
--inferInfer custom item types from title-prefix conventions (add-type; preview unless --apply)可选
--min-count <n>Minimum items sharing a prefix for add-type --infer (default 10)可选
--applyRegister inferred types (add-type --infer); without it the command previews only可选
--to <name>Target definition name for rename/remap migrations可选
--migration-id <id>Stable idempotency key for a resumable schema migration可选
--dry-runPreview rename/remap migrations and workflow-policy actions without writes可选
--author <value>Mutation author可选
--forceForce ownership/lock override可选

示例

pm workspace schema --help

相关命令