mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-08-12 21:55:43 +02:00
33 lines
525 B
Markdown
33 lines
525 B
Markdown
![]() |
# uci
|
||
|
|
||
|
> Manage OpenWrt configuration files.
|
||
|
> More information: <https://openwrt.org/docs/techref/uci>.
|
||
|
|
||
|
- Fetch a value:
|
||
|
|
||
|
`uci get {{network.lan.ipaddr}}`
|
||
|
|
||
|
- List all options and their values:
|
||
|
|
||
|
`uci show {{network}}`
|
||
|
|
||
|
- Set a value:
|
||
|
|
||
|
`uci set {{config}}.{{section}}.{{option}}={{value}}`
|
||
|
|
||
|
- Add a new section:
|
||
|
|
||
|
`uci add {{config}} {{section}}`
|
||
|
|
||
|
- Delete a section or value:
|
||
|
|
||
|
`uci delete {{config}}.{{section}}.{{option}}`
|
||
|
|
||
|
- Commit changes:
|
||
|
|
||
|
`uci commit {{config}}`
|
||
|
|
||
|
- Discard uncommitted changes:
|
||
|
|
||
|
`uci revert {{config}}`
|