{
    "$schema": "https://raw.githubusercontent.com/npenin/akala/main/packages/commands/command-schema.json",
    "doc": {
        "inject": [
            "container",
            "options",
            "signal"
        ],
        "options": {
            "container": "The to-be-served container",
            "options": "The serve options",
            "signal": "An AbortSignal to stop the server",
            "args": "The transports used to serve the container (default available transports are http, tcp, local, ws).\nws, http and tcp have they secured counterparts available if cert and key options are provided."
        },
        "description": "Serves the `container` with different transports based on the provided options. \n\nDefault available transports are http, tcp, local, ws).\n  ws, http and tcp have they secured counterparts available if cert and key options are provided."
    },
    "cli": {
        "inject": [
            "$container",
            "options",
            "context.signal"
        ],
        "options": {
            "tcpPort": {
                "needsValue": true,
                "aliases": [
                    "tcp-port"
                ],
                "doc": "port used to serve json rpc over websocket. "
            },
            "port": {
                "needsValue": true,
                "doc": "port used to serve through http or https"
            },
            "key": {
                "needsValue": true,
                "normalize": true,
                "doc": "certificate private key. Works in pair with `--cert`. If the certificate is not provided, the key is ignored."
            },
            "cert": {
                "needsValue": true,
                "doc": "certificate to be used to serve secured server. Works in pair with `--key`. If the key is not provided, the certificate is ignored."
            },
            "socketName": {
                "needsValue": true,
                "aliases": [
                    "socket-name"
                ],
                "doc": "name of the unix-socket / windows named pipe. This option is used only in case when local is provided as an argument"
            }
        }
    }
}