{
  "description": "Serve a folder of .cook recipes as a local web UI with `cook server`. Host binding, proxy and CORS options are left out except the origin list.",
  "name": "cook",
  "subcommands": [
    {
      "name": "server",
      "description": "Run the recipe server",
      "options": [
        {
          "names": [
            "--port",
            "-p"
          ],
          "description": "Port",
          "args": {
            "name": "port",
            "isOptional": false
          }
        },
        {
          "names": [
            "--open"
          ],
          "description": "Open in browser"
        },
        {
          "names": [
            "--url-prefix"
          ],
          "description": "Subpath behind a reverse proxy; must start with /.",
          "args": {
            "name": "url_prefix",
            "description": "Subpath behind a reverse proxy; must start with /.",
            "isOptional": false
          }
        },
        {
          "names": [
            "--cors-origin"
          ],
          "description": "Allowed CORS origins",
          "args": {
            "name": "cors_origin",
            "isOptional": false,
            "isVariadic": true
          },
          "isRepeatable": true
        }
      ],
      "args": [
        {
          "name": "base_path",
          "isOptional": true,
          "template": "folders"
        }
      ]
    }
  ]
}
