Documentation
¶
Overview ¶
cfv validates, formats, and fixes configuration files across 18 formats.
Usage: cfv [global-flags] [subcommand] [subcommand-flags] [<search_path>...]
Subcommands:
check Validate syntax and schema (default when no subcommand given) format Report formatting issues (use --fix to rewrite files) version Print version and exit help Print help; "cfv help <subcommand>" for subcommand help
positional arguments:
search_path: Filesystem path to search for configuration files.
Defaults to the current working directory.
Multiple paths can be provided separated by spaces.
Use "-" to read from stdin (requires --file-types).
Schema validation runs automatically when a file declares a schema:
YAML: # yaml-language-server: $schema=schema.json XML: xsi:noNamespaceSchemaLocation="schema.xsd" XML: <!DOCTYPE> with inline DTD (validated during syntax check)
For JSON, JSONC, TOML, and TOON, use --schema-map or --schemastore.
Global flags apply to all subcommands and must precede the subcommand name. Run "cfv help check" or "cfv help format" for subcommand-specific flags.
Click to show internal directories.
Click to hide internal directories.