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:
JSON: {"$schema": "schema.json", ...}
YAML: # yaml-language-server: $schema=schema.json
TOML: "$schema" = "schema.json"
TOON: "$schema": schema.json
XML: xsi:noNamespaceSchemaLocation="schema.xsd"
XML: <!DOCTYPE> with inline DTD (validated during syntax check)
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.