.\" Automatically generated by Pandoc 3.6.1 .\" .TH "NETPLAN\-SET" "8" "" "" .SH NAME \f[CR]netplan\-set\f[R] \- write Netplan YAML configuration snippets to file .SH SYNOPSIS \f[B]\f[CB]netplan\f[B]\f[R] [\f[I]\-\-debug\f[R]] \f[B]set\f[R] \f[B]\-h\f[R]|\f[B]\-\-help\f[R] .PP \f[B]\f[CB]netplan\f[B]\f[R] [\f[I]\-\-debug\f[R]] \f[B]set\f[R] [\f[I]\-\-root\-dir=ROOT_DIR\f[R]] [\f[I]\-\-origin\-hint=ORIGIN_HINT\f[R]] [\f[I]key=value\f[R]] .SH DESCRIPTION \f[B]\f[CB]netplan set [key=value]\f[B]\f[R] writes a given key/value pair or YAML subtree into a YAML file in \f[CR]/etc/netplan/\f[R] and validates its format. .PP You can specify a single value as: \f[CR]\[dq][network.]ethernets.eth0.addresses=[1.2.3.4/24, 5.6.7.8/24]\[dq]\f[R] or a full subtree as: \f[CR]\[dq][network.]ethernets.eth0={dhcp4: true, dhcp6: true}\[dq]\f[R]. .PP For details of the configuration file format, see \f[B]\f[CB]netplan\f[B]\f[R](5). .SH OPTIONS .TP \f[CR]\-h\f[R], \f[CR]\-\-help\f[R] Print basic help. .TP \f[CR]\-\-debug\f[R] Print debugging output during the process. .TP \f[CR]\-\-root\-dir\f[R] Write YAML files into this root instead of \f[CR]/\f[R]. .TP \f[CR]\-\-origin\-hint\f[R] Specify a name for the configuration file, e.g.: \f[CR]70\-netplan\-set\f[R] => \f[CR]/etc/netplan/70\-netplan\-set.yaml\f[R]. .SH SEE ALSO \f[B]\f[CB]netplan\f[B]\f[R](5), \f[B]\f[CB]netplan\-get\f[B]\f[R](8), \f[B]\f[CB]netplan\-dbus\f[B]\f[R](8) .SH AUTHORS Lukas Märdian (lukas.maerdian\[at]canonical.com).