Todos los comandos · workspace

pm workspace schema

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

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

Uso

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

Argumentos

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

Opciones

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

Ejemplos

pm workspace schema --help

Comandos relacionados