A command-line tool to convert between YAML and JSON formats.
- Convert YAML files to JSON format
- Convert JSON files to YAML format
- Customizable JSON indentation
- Error handling for invalid files and formats
# Convert YAML to JSON (default 2-space indent)
yamlcli input.yaml --to-json
# Convert YAML to JSON with custom indentation
yamlcli input.yaml --to-json --indent 4
# Convert JSON to YAML
yamlcli input.json --to-yamluv tool install git+https://github.com/RyoNakagami/yamlcli.gituv tool uninstall yamlcliTests are written using pytest. To run the tests:
uv run pytest