# NETPLAN-SET - write Netplan YAML configuration snippets to file - man(8) - [phpMan]

[_NETPLAN-SET_(8)](https://www.chedong.com/phpMan.php/man/NETPLAN-SET/8/markdown)                                                                        [_NETPLAN-SET_(8)](https://www.chedong.com/phpMan.php/man/NETPLAN-SET/8/markdown)

## NAME
       **netplan-set **- write Netplan YAML configuration snippets to file

## SYNOPSIS
       **netplan **[_--debug_] **set -h**|**--help**

       **netplan **[_--debug_] **set **[_--root-dir=ROOT_DIR_] [_--origin-hint=ORIGIN_HINT_] [_key=value_]

## DESCRIPTION
       **netplan  set  [key=value]  **writes  a given key/value pair or YAML subtree into a YAML file in
       **/etc/netplan/ **and validates its format.

       You  can  specify  a  single   value   as:   **"[network.]ethernets.eth0.addresses=[1.2.3.4/24,**
       **5.6.7.8/24]" **or a full subtree as: **"[network.]ethernets.eth0={dhcp4: true, dhcp6: true}"**.

       For details of the configuration file format, see [**netplan**(5)](https://www.chedong.com/phpMan.php/man/netplan/5/markdown).

## 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  configuration  file,  e.g.:  **70-netplan-set  **=>  **/etc/net‐**
              **plan/70-netplan-set.yaml**.

## SEE ALSO
       [**netplan**(5)](https://www.chedong.com/phpMan.php/man/netplan/5/markdown), [**netplan-get**(8)](https://www.chedong.com/phpMan.php/man/netplan-get/8/markdown), [**netplan-dbus**(8)](https://www.chedong.com/phpMan.php/man/netplan-dbus/8/markdown)

## AUTHORS
       Lukas Märdian (<lukas.maerdian@canonical.com>).

                                                                                      [_NETPLAN-SET_(8)](https://www.chedong.com/phpMan.php/man/NETPLAN-SET/8/markdown)
