Skip to main content

How do I scan a specific directory instead of the whole project?

FAQ resource for your migration project.

FAQ resource for How do I scan a specific directory instead of the whole project?.

Answer

Pass the path as an argument: vg scan packages/api or vg scan /absolute/path/to/project. The scan will discover projects recursively from that path. To exclude subdirectories, use the exclude array in vibgrate.config.ts, or pass --exclude (alias -e) on the command line for a one-off scan — for example vg scan --exclude "legacy/**" --exclude "vendor/**". The flag is repeatable, accepts comma/semicolon-separated values, and is merged with (not a replacement for) the config exclude list.