OpenWrt UCI (Unified Configuration Interface) Cheat Sheet¶
How to configure OpenWrt router settings straight from the terminal using UCI.
Core Configuration Commands¶
Display the entire router configuration:
Display settings for a specific subsystem (e.g., uci show network):
Retrieve the value of a specific configuration option:
Modify or create a specific configuration option:
Add a value to a configuration list (e.g., adding a DNS server):
Remove a value from a configuration list:
Delete an entire section or option:
Applying Changes¶
View uncommitted changes staged in memory:
Discard uncommitted changes for a specific configuration:
Write all staged changes to the /etc/config/ filesystem:
Restart the associated service to apply committed changes (e.g., /etc/init.d/network restart):