cfv

command
v3.0.0-rc.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 16, 2026 License: Apache-2.0 Imports: 20 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL