{
    "mode": "man",
    "parameter": "NETPLAN-SET",
    "section": "8",
    "url": "https://www.chedong.com/phpMan.php/man/NETPLAN-SET/8/json",
    "generated": "2026-10-05T02:57:07Z",
    "synopsis": "netplan [--debug] set -h|--help\nnetplan [--debug] set [--root-dir=ROOTDIR] [--origin-hint=ORIGINHINT] [key=value]",
    "sections": {
        "NAME": {
            "content": "netplan-set - write Netplan YAML configuration snippets to file\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "netplan [--debug] set -h|--help\n\nnetplan [--debug] set [--root-dir=ROOTDIR] [--origin-hint=ORIGINHINT] [key=value]\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "netplan  set  [key=value]  writes  a given key/value pair or YAML subtree into a YAML file in\n/etc/netplan/ and validates its format.\n\nYou  can  specify  a  single   value   as:   \"[network.]ethernets.eth0.addresses=[1.2.3.4/24,\n5.6.7.8/24]\" or a full subtree as: \"[network.]ethernets.eth0={dhcp4: true, dhcp6: true}\".\n\nFor details of the configuration file format, see netplan(5).\n",
            "subsections": []
        },
        "OPTIONS": {
            "content": "",
            "subsections": [
                {
                    "name": "-h --help",
                    "content": "Print basic help.\n",
                    "flag": "-h",
                    "long": "--help"
                },
                {
                    "name": "--debug",
                    "content": "Print debugging output during the process.\n",
                    "long": "--debug"
                },
                {
                    "name": "--root-dir",
                    "content": "Write YAML files into this root instead of /.\n",
                    "long": "--root-dir"
                },
                {
                    "name": "--origin-hint",
                    "content": "Specify  a  name  for  the  configuration  file,  e.g.:  70-netplan-set  =>  /etc/net‐\nplan/70-netplan-set.yaml.\n",
                    "long": "--origin-hint"
                }
            ]
        },
        "SEE ALSO": {
            "content": "netplan(5), netplan-get(8), netplan-dbus(8)\n",
            "subsections": []
        },
        "AUTHORS": {
            "content": "Lukas Märdian (lukas.maerdian@canonical.com).\n\nNETPLAN-SET(8)",
            "subsections": []
        }
    },
    "summary": "netplan-set - write Netplan YAML configuration snippets to file",
    "flags": [
        {
            "flag": "-h",
            "long": "--help",
            "arg": null,
            "description": "Print basic help."
        },
        {
            "flag": "",
            "long": "--debug",
            "arg": null,
            "description": "Print debugging output during the process."
        },
        {
            "flag": "",
            "long": "--root-dir",
            "arg": null,
            "description": "Write YAML files into this root instead of /."
        },
        {
            "flag": "",
            "long": "--origin-hint",
            "arg": null,
            "description": "Specify a name for the configuration file, e.g.: 70-netplan-set => /etc/net‐ plan/70-netplan-set.yaml."
        }
    ],
    "examples": [],
    "see_also": [
        {
            "name": "netplan",
            "section": "5",
            "url": "https://www.chedong.com/phpMan.php/man/netplan/5/json"
        },
        {
            "name": "netplan-get",
            "section": "8",
            "url": "https://www.chedong.com/phpMan.php/man/netplan-get/8/json"
        },
        {
            "name": "netplan-dbus",
            "section": "8",
            "url": "https://www.chedong.com/phpMan.php/man/netplan-dbus/8/json"
        }
    ]
}