While many op mode set commands are only relevant for the CLI and have effect only in the current session (like set terminal width), there are quite a few that make permanent (or at least long-lasting) system-wide changes, such as:
- set date
- set system image default-boot
- set pppoe-server maintenance-mode
Operations like these should certainly be exposed in the API.