Codemod CLI command reference

Runs a code modification script

USAGE
  $ sanity codemod [CODEMODNAME] [--dry] [--extensions <value>] [--no-verify]

ARGUMENTS
  [CODEMODNAME]  Name of the codemod to run

FLAGS
      --dry                 Dry run (no changes are made to files)
      --extensions=<value>  Transform files with these file extensions (comma separated)
      --no-verify           Skip verification steps before running codemod

DESCRIPTION
  Updates Sanity Studio codebase with a code modification script

EXAMPLES
  Show available code mods

    $ sanity codemod

  Run codemod to transform react-icons imports (dry run)

    $ sanity codemod reactIconsV3 --dry

Was this page helpful?

sanity.ioAll Systems Operational© Sanity 2026
Change site theme