Project
CLI

Validate

Validate project files against the local template snapshot.

project validate

Validate a project against its local .project/template snapshot.

project validate [directory|file] [flags]

Arguments

ArgumentRequiredDefaultDescription
`directoryfile`no.

Flags

FlagSynonymsTypeDefaultDescription
--format-stringprettyOutput format. Current useful values are pretty and tsv.
--view-stringtreePretty output view.
--color-scope-stringlineColor scope for pretty output.
--status-color-only-booleanfalseColor only the status text instead of the whole row.
--quarantine-booleanfalseMove not_allowed validation violations into .project/quarantine.
--dry-run-booleanfalseShow the quarantine plan without writing changes.
--yes-ybooleanfalseApply the quarantine plan without prompting.
--help-hbooleanfalsePrint help.

Statuses

StatusMeaning
OKFile exists in the template and matches the expected template area.
ADDEDFile is allowed by a slot pattern.
VIOLATIONFile is neither in the template nor allowed by a slot pattern.

Output

Use --format tsv when another tool or agent should filter the result.

project validate --format tsv
project validate --format tsv | awk '$1 == "VIOLATION"'

Quarantine

Quarantine moves violating files out of the source tree while keeping them visible in Git.

project validate --quarantine --dry-run
project validate --quarantine --yes

Violating files are moved under:

.project/quarantine/<original-path>

Examples

project validate
project validate .
project validate src/app/page.tsx
project validate --view table
project validate --status-color-only
project validate --format tsv

On this page