hugo_convert.md (1775B)
1 --- 2 title: "hugo convert" 3 slug: hugo_convert 4 url: /commands/hugo_convert/ 5 --- 6 ## hugo convert 7 8 Convert your content to different formats 9 10 ### Synopsis 11 12 Convert your content (e.g. front matter) to different formats. 13 14 See convert's subcommands toJSON, toTOML and toYAML for more information. 15 16 ### Options 17 18 ``` 19 -h, --help help for convert 20 -o, --output string filesystem path to write files to 21 --unsafe enable less safe operations, please backup first 22 ``` 23 24 ### Options inherited from parent commands 25 26 ``` 27 --clock string set the clock used by Hugo, e.g. --clock 2021-11-06T22:30:00.00+09:00 28 --config string config file (default is path/config.yaml|json|toml) 29 --configDir string config dir (default "config") 30 --debug debug output 31 -e, --environment string build environment 32 --ignoreVendorPaths string ignores any _vendor for module paths matching the given Glob pattern 33 --log enable Logging 34 --logFile string log File path (if set, logging enabled automatically) 35 --quiet build in quiet mode 36 -s, --source string filesystem path to read files relative from 37 --themesDir string filesystem path to themes directory 38 -v, --verbose verbose output 39 --verboseLog verbose logging 40 ``` 41 42 ### SEE ALSO 43 44 * [hugo](/commands/hugo/) - hugo builds your site 45 * [hugo convert toJSON](/commands/hugo_convert_tojson/) - Convert front matter to JSON 46 * [hugo convert toTOML](/commands/hugo_convert_totoml/) - Convert front matter to TOML 47 * [hugo convert toYAML](/commands/hugo_convert_toyaml/) - Convert front matter to YAML 48