pinset2.1
中文
Query and lifecycle commands

pinset migrate

Validate and rewrite schema 1–3 project configuration as schema 4 while retaining schema 3 runtime locks, without re-resolving versions.

View source on GitHub
FieldDescription
PurposeValidate and rewrite schema 1–3 project configuration as schema 4 while retaining schema 3 runtime locks, without re-resolving versions.
Syntax and arguments`pinset migrate [--global
Modifies stateYes, unless --dry-run; normalizes the config and lock with atomic per-file replacement only.
Examplepinset migrate --cwd ./app --dry-run
JSONYes; command name migrate, including source and target schemas.
Exit0 after validation/migration; 2 when config and lock cannot be proven consistent.
Key errorsMissing config/lock, unsupported schema, config-lock mismatch, or write failure.
/en/docs/commands/migratePinset 2.1