CLI reference
Codemod CLI command reference
Runs a code modification script
USAGE
$ sanity codemod [CODEMODNAME]
ARGUMENTS
[CODEMODNAME] Name of the codemod to run
FLAGS
--dry Dry run (no changes are made to files)
--extensions=<EXTENSIONS> 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