Skip to main content

CLI Flags

validator [OPTIONS] [<search_path>...]

If no search path is provided, the validator searches the current directory. Use - to read from stdin (requires --file-types).

Flags

FlagTypeDefaultDescription
-depthintunlimitedMaximum recursion depth. 0 disables recursion.
-exclude-dirsstringComma-separated list of directory names to skip.
-exclude-file-typesstringComma-separated list of file types to ignore. Cannot be used with -file-types.
-file-typesstringallComma-separated list of file types to validate. Cannot be used with -exclude-file-types.
-gitignoreboolfalseSkip files matched by .gitignore patterns. Only active inside a Git repository.
-globbingboolfalseTreat positional arguments as glob patterns.
-groupbystringGroup output by: filetype, directory, pass-fail, error-type. Comma-separated.
-quietboolfalseSuppress all stdout output. Errors still print to stderr.
-reporterstringstandardOutput format and optional path. Format: <type>:<path>. Types: standard, json, junit, sarif. Repeatable.
-require-schemaboolfalseFail files that support schema validation but don't declare a schema.
-no-schemaboolfalseDisable all schema validation. Cannot be combined with -require-schema, -schema-map, or -schemastore.
-schema-mapstringMap a glob pattern to a schema file. Format: <pattern>:<schema_path>. Repeatable.
-schemastoreboolfalseEnable automatic schema lookup by filename using the SchemaStore catalog.
-schemastore-pathstringPath to a local SchemaStore clone. Implies -schemastore.
-configstringautoPath to a .cfv.toml configuration file.
-no-configboolfalseDisable automatic .cfv.toml discovery.
-type-mapstringMap a glob pattern to a file type. Format: <pattern>:<type>. Repeatable.
-versionboolPrint the version and exit.