Skip to main content
Auto-migrate your existing knip and/or jscpd configuration to fallow. The migrate command reads your current config, translates it to fallow’s format, and writes a new config file.
If both knip and jscpd configs exist in your project, fallow merges them into a single unified config.
Use --dry-run to preview the generated config before writing anything to disk.
fallow migrate

Options

FlagDescription
--tomlOutput as fallow.toml instead of .fallowrc.json
--dry-runPreview the generated config without writing
--from <PATH>Path to the config file to migrate

What it detects

Fallow auto-detects:
  • knip.json, knip.jsonc, .knip.json, .knip.jsonc
  • knip field in package.json
  • .jscpd.json
  • jscpd field in package.json

Examples

# Detect config files and migrate
fallow migrate

# Preview without writing
fallow migrate --dry-run
Warnings are shown for any config fields that can’t be migrated automatically.

See also

Migrating from knip

Detailed comparison and migration guide from knip.

Migrating from jscpd

Detailed comparison and migration guide from jscpd.