Skip to content
View as Markdown

upgrade ​

Run codemods to upgrade your project to a newer SDK version.

Usage

tailor upgrade [options]

Options

OptionAliasDescriptionRequiredDefault
--from <FROM>-SDK version before the upgrade (e.g., 1.33.0)Yes-
--dry-run-dPreview changes without modifying filesNofalse
--path <PATH>-Project directory to upgradeNo"."

See Global Options for options available to all commands.

How It Works ​

The upgrade command runs codemods that automatically transform your project code for breaking changes between SDK versions. The target version (--to) is auto-detected from the installed @tailor-platform/sdk in node_modules.

Typical workflow:

  1. Update your SDK packages to the new version (e.g., pnpm update @tailor-platform/sdk)
  2. Run tailor upgrade --from <old-version> to apply codemods
  3. Review changes and commit

Use --dry-run to preview what changes will be made before applying them.