User manual

8: Command Line Interface
_______________________________________________________________________________________________________
-S disable strict mode
-X do not use extended syntax on 'show'
Command Target Description
commit [<config>]
Writes changes of the given
configuration file, or if none is given,
all configuration files, to the
filesystem. All "uci set", "uci add", "uci
rename" and "uci delete" commands
are staged into a temporary location
and written to flash at once with "uci
commit". This is not needed after
editing configuration files with a text
editor, but for scripts, GUIs and other
programs working directly with UCI
files.
export [<config>]
Exports the configuration in a machine
readable format. It is used internally
to evaluate configuration files as shell
scripts.
import [<config>]
Imports configuration files in UCI
syntax.
changes [<config>]
Lists staged changes to the given
configuration file or if none given, all
configuration files.
Add <config> <section-type>
Adds an anonymous section of type
section-type to the given
configuration.
add_list <config>.<section>.<option>=<string>
Adds the given string to an existing
list option.
show [<config>[.<section>[.<option>]]]
Shows the given option, section or
configuration in compressed notation.
get <config>.<section>[.<option>]
Gets the value of the given option or
the type of the given section.
Set <config>.<section>[.<option>]=<value>
Sets the value of the given option, or
add a new section with the type set to
the given value.
delete
<config>[.<section[.<option>]]
Deletes the given section or option.
rename <config>.<section>[.<option>]=<name>
Renames the given option or section to
the given name.
revert <config>[.<section>[.<option>]]
Reverts the given option, section or
configuration file.
_______________________________________________________________________________________________________
© Virtual Access 2015
GW1000 Series User Manual
Issue: 2.4 Page 36 of 255