# A tool used to edit NFD configuration files This tool is majorly developed for use in NFD integration tests. However, it can also used to edit any INFO-formatted files. Each invocation of `infoedit` tool performs exactly one edit and the file is modified in place. To perform multiple edits, `infoedit` tool should be invoked multiple times on the same file. ## Usage infoedit [-f file] [-s|d|a|r path] [-v value] OPTIONS: * `-f file`: specifies a file to edit * `-s path`: specifies a property-tree path to modify * `-p path`: specifies a property-tree path to add (duplicates can be added) * `-v value`: used with -s path or -p path, sets the value at the path * `-d path`: deletes all subtrees matching the path * `-a path`: adds a subtree at the path; the subtree is read from stdin * `-r path`: replaces a subtree at the path; equivalent to -d path followed by -a path ## Sample commands for NFD ./infoedit -f nfd.conf -s general.user -v ndn.user ./infoedit -f nfd.conf -s tables.strategy_choice./site -v /localhost/nfd/strategy/broadcast ./infoedit -f nfd.conf -d tables.strategy_choice./ ./infoedit -f nfd.conf -d authorizations ./infoedit -f nfd.conf -a rib.localhost_security <<