{
    "content": [
        {
            "type": "text",
            "text": "# systemd-stdio-bridge (man)\n\n## NAME\n\nsystemd-stdio-bridge - D-Bus proxy\n\n## SYNOPSIS\n\nsystemd-stdio-bridge [OPTIONS...]\n\n## DESCRIPTION\n\nsystemd-stdio-bridge implements a proxy between STDIN/STDOUT and a D-Bus bus. It expects to\nreceive an open connection via STDIN/STDOUT when started, and will create a new connection to\nthe specified bus. It will then forward messages between the two connections. This program is\nsuitable for socket activation: the first connection may be a pipe or a socket and must be\npassed as either standard input, or as an open file descriptor according to the protocol\ndescribed in sdlistenfds(3). The second connection will be made by default to the local\nsystem bus, but this can be influenced by the --user, --system, --machine=, and --bus-path=\noptions described below.\n\n## TLDR\n\n> Implement a proxy between `stdin`/`stdout` and a D-Bus.\n\n- Forward `stdin`/`stdout` to the local system bus:\n  `systemd-stdio-bridge`\n- Forward `stdin`/`stdout` to a specific user's D-Bus:\n  `systemd-stdio-bridge --{{user}}`\n- Forward `stdin`/`stdout` to the local system bus within a specific container:\n  `systemd-stdio-bridge {{-M|--machine}} {{mycontainer}}`\n- Forward `stdin`/`stdout` to a custom D-Bus address:\n  `systemd-stdio-bridge {{-p|--bus-path}} unix:path=/{{path/to/dbus_socket}}`\n\n*Source: tldr-pages*\n\n## Sections\n\n- **NAME**\n- **SYNOPSIS**\n- **DESCRIPTION**\n- **OPTIONS** (6 subsections)\n- **EXIT STATUS**\n- **SEE ALSO**\n- **NOTES**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "systemd-stdio-bridge",
        "section": "",
        "mode": "man",
        "summary": "systemd-stdio-bridge - D-Bus proxy",
        "synopsis": "systemd-stdio-bridge [OPTIONS...]",
        "tldr_summary": "Implement a proxy between `stdin`/`stdout` and a D-Bus.",
        "tldr_examples": [
            {
                "description": "Forward `stdin`/`stdout` to the local system bus",
                "command": "systemd-stdio-bridge"
            },
            {
                "description": "Forward `stdin`/`stdout` to a specific user's D-Bus",
                "command": "systemd-stdio-bridge --{{user}}"
            },
            {
                "description": "Forward `stdin`/`stdout` to the local system bus within a specific container",
                "command": "systemd-stdio-bridge {{-M|--machine}} {{mycontainer}}"
            },
            {
                "description": "Forward `stdin`/`stdout` to a custom D-Bus address",
                "command": "systemd-stdio-bridge {{-p|--bus-path}} unix:path=/{{path/to/dbus_socket}}"
            }
        ],
        "tldr_source": "official",
        "flags": [
            {
                "flag": "",
                "long": "--user",
                "arg": null,
                "description": "Talk to the service manager of the calling user, rather than the service manager of the system."
            },
            {
                "flag": "",
                "long": "--system",
                "arg": null,
                "description": "Talk to the service manager of the system. This is the implied default."
            },
            {
                "flag": "-M",
                "long": null,
                "arg": null,
                "description": "Execute operation on a local container. Specify a container name to connect to, optionally prefixed by a user name to connect as and a separating \"@\" character. If the special string \".host\" is used in place of the container name, a connection to the local system is made (which is useful to connect to a specific user's user bus: \"--user --machine=lennart@.host\"). If the \"@\" syntax is not used, the connection is made as root user. If the \"@\" syntax is used either the left hand side or the right hand side may be omitted (but not both) in which case the local user name and \".host\" are implied."
            },
            {
                "flag": "-p",
                "long": "--bus-path",
                "arg": "_",
                "description": "Path to the bus address. Default: \"unix:path=/run/dbus/systembussocket\" Added in version 251."
            },
            {
                "flag": "-h",
                "long": "--help",
                "arg": null,
                "description": "Print a short help text and exit."
            },
            {
                "flag": "",
                "long": "--version",
                "arg": null,
                "description": "Print a short version string and exit."
            }
        ],
        "examples": [],
        "see_also": [
            {
                "name": "dbus-daemon",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/dbus-daemon/1/json"
            },
            {
                "name": "dbus-broker",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/dbus-broker/1/json"
            },
            {
                "name": "systemd",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/systemd/1/json"
            }
        ],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 12,
                "subsections": []
            },
            {
                "name": "OPTIONS",
                "lines": 2,
                "subsections": [
                    {
                        "name": "--user",
                        "lines": 3,
                        "long": "--user"
                    },
                    {
                        "name": "--system",
                        "lines": 2,
                        "long": "--system"
                    },
                    {
                        "name": "-M --machine=",
                        "lines": 8,
                        "flag": "-M"
                    },
                    {
                        "name": "-p _ --bus-path=_",
                        "lines": 4,
                        "flag": "-p",
                        "long": "--bus-path",
                        "arg": "_"
                    },
                    {
                        "name": "-h --help",
                        "lines": 2,
                        "flag": "-h",
                        "long": "--help"
                    },
                    {
                        "name": "--version",
                        "lines": 2,
                        "long": "--version"
                    }
                ]
            },
            {
                "name": "EXIT STATUS",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "NOTES",
                "lines": 4,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "systemd-stdio-bridge - D-Bus proxy\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "systemd-stdio-bridge [OPTIONS...]\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "systemd-stdio-bridge implements a proxy between STDIN/STDOUT and a D-Bus bus. It expects to\nreceive an open connection via STDIN/STDOUT when started, and will create a new connection to\nthe specified bus. It will then forward messages between the two connections. This program is\nsuitable for socket activation: the first connection may be a pipe or a socket and must be\npassed as either standard input, or as an open file descriptor according to the protocol\ndescribed in sdlistenfds(3). The second connection will be made by default to the local\nsystem bus, but this can be influenced by the --user, --system, --machine=, and --bus-path=\noptions described below.\n\nsd-bus(3) uses systemd-stdio-bridge to forward D-Bus connections over ssh(1), or to connect\nto the bus of a different user, see sdbussetaddress(3).\n",
                "subsections": []
            },
            "OPTIONS": {
                "content": "The following options are understood:\n",
                "subsections": [
                    {
                        "name": "--user",
                        "content": "Talk to the service manager of the calling user, rather than the service manager of the\nsystem.\n",
                        "long": "--user"
                    },
                    {
                        "name": "--system",
                        "content": "Talk to the service manager of the system. This is the implied default.\n",
                        "long": "--system"
                    },
                    {
                        "name": "-M --machine=",
                        "content": "Execute operation on a local container. Specify a container name to connect to,\noptionally prefixed by a user name to connect as and a separating \"@\" character. If the\nspecial string \".host\" is used in place of the container name, a connection to the local\nsystem is made (which is useful to connect to a specific user's user bus: \"--user\n--machine=lennart@.host\"). If the \"@\" syntax is not used, the connection is made as root\nuser. If the \"@\" syntax is used either the left hand side or the right hand side may be\nomitted (but not both) in which case the local user name and \".host\" are implied.\n",
                        "flag": "-M"
                    },
                    {
                        "name": "-p _ --bus-path=_",
                        "content": "Path to the bus address. Default: \"unix:path=/run/dbus/systembussocket\"\n\nAdded in version 251.\n",
                        "flag": "-p",
                        "long": "--bus-path",
                        "arg": "_"
                    },
                    {
                        "name": "-h --help",
                        "content": "Print a short help text and exit.\n",
                        "flag": "-h",
                        "long": "--help"
                    },
                    {
                        "name": "--version",
                        "content": "Print a short version string and exit.\n",
                        "long": "--version"
                    }
                ]
            },
            "EXIT STATUS": {
                "content": "On success, 0 is returned, a non-zero failure code otherwise.\n",
                "subsections": []
            },
            "SEE ALSO": {
                "content": "dbus-daemon(1), dbus-broker(1), \u001b[34mD-Bus[1], systemd(1)\n",
                "subsections": []
            },
            "NOTES": {
                "content": "1. D-Bus\nhttps://www.freedesktop.org/wiki/Software/dbus\n\nsystemd 255                                                                  SYSTEMD-STDIO-BRIDGE(1)",
                "subsections": []
            }
        }
    }
}