DOKK / manpages / debian 11 / ruby-hocon / hocon.1.en
HOCON(1) User Commands HOCON(1)

hocon - manipulate HOCON files

hocon [options] {get,set,unset} PATH [VALUE]

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.

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

Returns the value at the given path
Sets or adds the given value at the given path
Removes the value at the given path

HOCON file to read/modify. If omitted, STDIN assumed
File to be written to. If omitted, STDOUT assumed
File to read/write to. Equivalent to setting -i/-o to the same file
Output values from the 'get' subcommand in JSON format
Show usage help.
Show version.

The informal specification for HOCON is available at https://github.com/typesafehub/config/blob/master/HOCON.md .

ruby-hocon was written by Chris Price, Wayne Warren, Preben Ingvaldsen, Joe Pinsonault, Kevin Corcoran and Jane Lu, based on the Typesafe Config Java library and distributed under the Apache License, Version 2.0.

The original Typesafe Config Java library was written by Typesafe Inc and distributed under the Apache License, 2.0.

This manpage was written by Apollon Oikonomopoulos <apoikos@debian.org> for the Debian project, but may be used by others.

September 2017 hocon 1.2.5