Usage: fy-dump [options] [args] General options: --help, -h : Display this help message --version, -v : Display libfyaml version --quiet, -q : Quiet operation (default false) --debug-level, -d : Set debug level (default 3) --color, -C : Color output (on, off, auto) (default auto) --visible, -V : Make whitespace and linebreaks visible (default false) --dry-run : Do not parse/emit Diagnostic options: --disable-diag : Disable diag error module --enable-diag : Enable diag error module --show-diag : Show diag option (source, position, type, module) --hide-diag : Hide diag option (source, position, type, module) Parser options: --include, -I : Add directory to include path (default ) --json, -j : JSON input mode (no, force, auto) (default auto) --resolve, -r : Perform anchor and merge key resolution (default false) --yaml-1.1 : Enable YAML 1.1 --yaml-1.2 : Enable YAML 1.2 --yaml-1.3 : Enable YAML 1.3 --follow, -l : Follow aliases when using paths (default false) --sloppy-flow-indentation : Enable sloppy indentation in flow mode (default false) --prefer-recursive : Prefer recursive instead of iterative algorithms (default false) --ypath-aliases : Use YPATH aliases (default false) --allow-duplicate-keys : Allow duplicate keys (default false) --collect-errors : Collect errors instead of outputting directly (default false) --disable-accel : Disable access accelerators (default false) --disable-buffering : Disable buffering (use unix fd) (default false) --disable-mmap : Disable mmap usage --disable-depth-limit : Disable depth limit (default false) Emitter options: --indent, -i : Set dump indent (default 2) --width, -w : Set dump width (inf for infinite) (default 80) --mode, -m : Output mode (default original) (original, block, flow, flow-oneline, json, json-tp, json-oneline, dejson, pretty, flow-compact, json-compact) --sort, -s : Perform mapping key sort (default false) --comment, -c : Output comments (experimental) (default false) --strip-labels : Strip labels when emitting (default false) --strip-tags : Strip tags when emitting (default false) --strip-doc : Strip document headers and indicators (default false) --strip-empty-kv : Strip keys with empty values (default false) --null-output : Do not generate output --no-ending-newline : Do not generate a final newline --preserve-flow-layout : Preserve layout of single line flow collections --indented-seq-in-map : Indent block sequences in block mappings --streaming : Use streaming output mode (default true) --no-streaming : Don't use streaming output mode --recreating : Recreate streaming events (default false) Examples: Parse and dump generated YAML document tree in the original YAML form $ fy-dump input.yaml Parse and dump generated YAML document tree in block YAML form (and make whitespace visible) $ fy-dump -V -mblock input.yaml Parse and dump generated YAML document from the input string $ fy-dump -mjson ">foo: bar" { "foo": "bar" }