Options: -c <path> set the search path for config files (default: /etc/config) -d <str> set the delimiter for list values in uci show -f <file> use <file> as input instead of stdin -m when importing, merge data into an existing package -n name unnamed sections on export (default) -N don't name unnamed sections -p <path> add a search path for config change files -P <path> add a search path for config change files and use as default -t <path> set save path for config change files -q quiet mode (don't print error messages) -s force strict mode (stop on parser errors, default) -S disable strict mode -X do not use extended syntax on 'show'
uci commits /etc/init.d/nginx reload service nginx restart
1 2 3 4
uci set nginx.@server[0].listen='80' uci set nginx.@server[0].server_name='example.com' uci set nginx.@server[0].location='/' uci set nginx.@server[0].location.@file[0].path='/var/www/html'