{
  "id": "mikro-orm",
  "name": "MikroORM",
  "description": "TypeScript ORM for Node.js based on Data Mapper, Unit of Work and Identity Map patterns.",
  "homepage": "https://mikro-orm.io",
  "executables": [
    "mikro-orm"
  ],
  "commands": {
    "format": 1,
    "label": "MikroORM CLI",
    "description": "Create migrations and update the schema. Entity generation, seeders and cache commands are left out.",
    "quality": "ai-draft",
    "base": "fig:mikro-orm",
    "parser": {
      "end_of_options": "--",
      "interleave": "permute",
      "long_equals": true,
      "short_attached": true,
      "short_bundles": true
    },
    "source": [
      {
        "id": "fig",
        "kind": "completion",
        "url": "https://github.com/withfig/autocomplete/blob/master/src/mikro-orm.ts",
        "license": "MIT"
      }
    ],
    "subcommand": [
      {
        "path": [
          "migration:create"
        ],
        "label": "Create a migration",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/mikro-orm.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "blank",
            "label": "Blank migration",
            "type": "boolean",
            "option": [
              "--blank",
              "-b"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "initial",
            "label": "Initial migration",
            "type": "boolean",
            "option": [
              "--initial",
              "-i"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "dump",
            "label": "Dump queries",
            "type": "boolean",
            "option": [
              "--dump",
              "-d"
            ],
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "create",
            "label": "Create from schema diff",
            "fields": [
              "blank",
              "initial",
              "dump"
            ]
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "blank",
              "initial",
              "dump"
            ]
          }
        ]
      },
      {
        "path": [
          "schema:update"
        ],
        "label": "Update the schema",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/mikro-orm.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "dump",
            "label": "Dump queries",
            "type": "boolean",
            "option": [
              "--dump",
              "-d"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "run",
            "label": "Run queries",
            "type": "boolean",
            "option": [
              "--run",
              "-r"
            ],
            "effect": "exec",
            "sources": [
              "fig"
            ]
          },
          {
            "id": "safe",
            "label": "Safe",
            "description": "Disable table and column dropping.",
            "type": "boolean",
            "option": [
              "--safe"
            ],
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "preview",
            "label": "Preview SQL",
            "set": {
              "dump": [
                true
              ]
            },
            "lock": [
              "dump"
            ],
            "fields": [
              "dump",
              "safe"
            ]
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "dump",
              "run",
              "safe"
            ]
          }
        ]
      }
    ]
  }
}
