{
  "id": "surreal",
  "name": "SurrealDB",
  "description": "Multi-model database; the surreal CLI starts the server and imports, exports and queries data.",
  "executables": [
    "surreal"
  ],
  "commands": {
    "format": 1,
    "label": "SurrealDB",
    "description": "Export or import a database. Server start, backup and REPL are not in this form.",
    "quality": "ai-draft",
    "base": "fig:surreal",
    "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/surreal.ts",
        "license": "MIT"
      }
    ],
    "subcommand": [
      {
        "path": [
          "export"
        ],
        "label": "Export database as SurrealQL",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/surreal.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "file",
            "label": "SurrealQL file",
            "type": "path",
            "path": {
              "kind": "file",
              "role": "output"
            },
            "position": 0,
            "min": 1,
            "effect": "overwrite",
            "sources": [
              "fig"
            ]
          },
          {
            "id": "conn",
            "label": "Server URL",
            "type": "url",
            "option": [
              "--conn",
              "-c"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "user",
            "label": "Username",
            "type": "string",
            "option": [
              "--user",
              "-u"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "pass",
            "label": "Password",
            "description": "Passed on the command line, so visible in shell history.",
            "type": "string",
            "option": [
              "--pass",
              "-p"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "ns",
            "label": "Namespace",
            "type": "string",
            "option": [
              "--ns"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "db",
            "label": "Database",
            "type": "string",
            "option": [
              "--db"
            ],
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "run",
            "label": "export",
            "fields": [
              "file",
              "conn",
              "user",
              "pass",
              "ns",
              "db"
            ],
            "required": [
              "file",
              "ns",
              "db"
            ]
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "file",
              "conn",
              "ns",
              "db",
              "user",
              "pass"
            ]
          }
        ]
      },
      {
        "path": [
          "import"
        ],
        "label": "Import SurrealQL script",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/surreal.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "file",
            "label": "SurrealQL file",
            "type": "path",
            "path": {
              "kind": "file",
              "role": "input"
            },
            "position": 0,
            "min": 1,
            "sources": [
              "fig"
            ]
          },
          {
            "id": "conn",
            "label": "Server URL",
            "type": "url",
            "option": [
              "--conn",
              "-c"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "user",
            "label": "Username",
            "type": "string",
            "option": [
              "--user",
              "-u"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "pass",
            "label": "Password",
            "description": "Passed on the command line, so visible in shell history.",
            "type": "string",
            "option": [
              "--pass",
              "-p"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "ns",
            "label": "Namespace",
            "type": "string",
            "option": [
              "--ns"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "db",
            "label": "Database",
            "type": "string",
            "option": [
              "--db"
            ],
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "run",
            "label": "import",
            "fields": [
              "file",
              "conn",
              "user",
              "pass",
              "ns",
              "db"
            ],
            "required": [
              "file",
              "ns",
              "db"
            ]
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "file",
              "conn",
              "ns",
              "db",
              "user",
              "pass"
            ]
          }
        ]
      }
    ]
  }
}
