Name
netplan-set - write netplan YAML configuration snippets to file
Synopsis
\f[B]netplan\f[R] [--debug] \f[B]set\f[R] -h | --help
\f[B]netplan\f[R] [--debug] \f[B]set\f[R] [--root-dir=ROOT_DIR] [--origin-hint=ORIGIN_HINT] [key=value]
Description
\f[B]netplan set [key=value]\f[R] writes a given key/value pair or YAML subtree into a YAML file in \f[V]/etc/netplan/\f[R] and validates its format.
You can specify a single value as: \f[V]"[network.]ethernets.eth0.dhcp4=[1.2.3.4/24, 5.6.7.8/24]"\f[R] or a full subtree as: \f[V]"[network.]ethernets.eth0={dhcp4: true, dhcp6: true}"\f[R].
For details of the configuration file format, see \f[B]netplan\f[R](5).
Options
-h, --help Print basic help.
--debug Print debugging output during the process.
--root-dir Write YAML files into this root instead of /
--origin-hint Specify a name for the config file, e.g.: \f[V]70-netplan-set\f[R] => \f[V]/etc/netplan/70-netplan-set.yaml\f[R]
See Also
\f[B]netplan\f[R](5), \f[B]netplan-get\f[R](8), \f[B]netplan-dbus\f[R](8)