{
  "id": "pocketbase",
  "name": "PocketBase",
  "description": "Open source backend in a single executable with an embedded database, auth and a REST API.",
  "homepage": "https://pocketbase.io",
  "executables": [
    "pocketbase"
  ],
  "commands": {
    "format": 1,
    "label": "PocketBase",
    "description": "Start the PocketBase web server. Migration subcommands are not covered.",
    "quality": "ai-draft",
    "base": "fig:pocketbase",
    "parser": {
      "end_of_options": "--",
      "interleave": "permute",
      "long_equals": true,
      "short_attached": true,
      "short_bundles": false
    },
    "source": [
      {
        "id": "fig",
        "kind": "completion",
        "url": "https://github.com/withfig/autocomplete/blob/master/src/pocketbase.ts",
        "license": "MIT"
      }
    ],
    "field": [
      {
        "id": "dir",
        "label": "Data directory",
        "description": "Default is pb_data.",
        "type": "path",
        "option": [
          "--dir"
        ],
        "path": {
          "kind": "directory",
          "role": "input"
        },
        "sources": [
          "fig"
        ]
      },
      {
        "id": "debug",
        "label": "Debug logs",
        "type": "boolean",
        "option": [
          "--debug"
        ],
        "sources": [
          "fig"
        ]
      }
    ],
    "group": [
      {
        "id": "basic",
        "label": "Basic",
        "fields": [
          "dir",
          "debug"
        ]
      }
    ],
    "subcommand": [
      {
        "path": [
          "serve"
        ],
        "label": "Start server",
        "description": "Start the web server (default 127.0.0.1:8090).",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/pocketbase.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "http",
            "label": "HTTP address",
            "type": "string",
            "option": [
              "--http"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "https",
            "label": "HTTPS address",
            "type": "string",
            "option": [
              "--https"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "origins",
            "label": "CORS origins",
            "type": "string",
            "option": [
              "--origins"
            ],
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "serve",
            "label": "Serve",
            "fields": [
              "http",
              "https",
              "origins"
            ],
            "required": []
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "http",
              "https",
              "origins"
            ]
          }
        ]
      }
    ]
  }
}
