hocon1
Manipulate hocon files
Usage
hocon [options]
get,set,unset
PATH
[VALUE]
Overview
The hocon(1) command can be used to get and set values on HOCON files. HOCON (Human-Optimized Config Object Notation) is a data format with the semantics of JSON, but more convenient as a human-editable config file format.
Examples
hocon -i settings.conf -o new_settings.conf set some.nested.value 42
hocon -f settings.conf set some.nested.value 42
cat settings.conf | hocon get some.nested.value
Commands
|
Returns the value at the given path |
|---|---|
|
Sets or adds the given value at the given path |
|
Removes the value at the given path |
Options
-
-i, --in-file HOCON_FILE -
HOCON file to read/modify. If omitted, STDIN assumed
-
-o, --out-file HOCON_FILE -
File to be written to. If omitted, STDOUT assumed
-
-f, --file HOCON_FILE -
File to read/write to. Equivalent to setting
-i/-oto the same file
-
-j, --json -
Output values from the 'get' subcommand in JSON format
-
-h, --help -
Show usage help.
-
-v, --version -
Show version.
Releases
Unchanged in 4 releases since Debian 10 (Buster).