{
  "id": "blitz",
  "name": "Blitz.js",
  "description": "The fullstack React framework CLI.",
  "homepage": "https://blitzjs.com",
  "executables": [
    "blitz"
  ],
  "commands": {
    "format": 1,
    "label": "Blitz.js project",
    "description": "Create projects, run the dev and production servers and generate code.",
    "quality": "ai-draft",
    "base": "fig:blitz",
    "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/blitz.ts",
        "license": "MIT"
      }
    ],
    "subcommand": [
      {
        "path": [
          "new"
        ],
        "label": "New project",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/blitz.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "name",
            "label": "Project name",
            "type": "string",
            "position": 0,
            "sources": [
              "fig"
            ]
          },
          {
            "id": "npm",
            "label": "Use npm",
            "type": "boolean",
            "option": [
              "--npm"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "yarn",
            "label": "Use yarn",
            "type": "boolean",
            "option": [
              "--yarn"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "form",
            "label": "Form library",
            "type": "enum",
            "option": [
              "--form"
            ],
            "choices": [
              {
                "value": "react-final-form",
                "label": "React Final Form"
              },
              {
                "value": "react-hook-form",
                "label": "React Hook Form"
              },
              {
                "value": "formik",
                "label": "Formik"
              }
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "dry_run",
            "label": "Dry run",
            "description": "Show what files will be created without writing them to disk.",
            "type": "boolean",
            "option": [
              "--dry-run",
              "-d"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "no_git",
            "label": "Skip git repository",
            "type": "boolean",
            "option": [
              "--no-git"
            ],
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "new",
            "label": "Create a project",
            "fields": [
              "name",
              "npm",
              "form"
            ],
            "required": [
              "name"
            ]
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "name",
              "npm",
              "yarn",
              "form"
            ]
          },
          {
            "id": "advanced",
            "label": "Advanced",
            "fields": [
              "dry_run",
              "no_git"
            ]
          }
        ]
      },
      {
        "path": [
          "dev"
        ],
        "label": "Development server",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/blitz.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "port",
            "label": "Port",
            "type": "integer",
            "option": [
              "--port",
              "-p"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "hostname",
            "label": "Hostname",
            "type": "string",
            "option": [
              "--hostname",
              "-H"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "inspect",
            "label": "Node.js inspector",
            "type": "boolean",
            "option": [
              "--inspect"
            ],
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "dev",
            "label": "Start the dev server",
            "fields": [
              "port",
              "hostname"
            ],
            "required": []
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "port",
              "hostname",
              "inspect"
            ]
          }
        ]
      },
      {
        "path": [
          "start"
        ],
        "label": "Production server",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/blitz.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "port",
            "label": "Port",
            "type": "integer",
            "option": [
              "--port",
              "-p"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "hostname",
            "label": "Hostname",
            "type": "string",
            "option": [
              "--hostname",
              "-H"
            ],
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "start",
            "label": "Start the production server",
            "fields": [
              "port",
              "hostname"
            ],
            "required": []
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "port",
              "hostname"
            ]
          }
        ]
      },
      {
        "path": [
          "generate"
        ],
        "label": "Generate code",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/blitz.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "type",
            "label": "What to generate",
            "type": "enum",
            "position": 0,
            "choices": [
              {
                "value": "all",
                "label": "All"
              },
              {
                "value": "crud",
                "label": "CRUD"
              },
              {
                "value": "model",
                "label": "Model"
              },
              {
                "value": "pages",
                "label": "Pages"
              },
              {
                "value": "queries",
                "label": "Queries"
              },
              {
                "value": "query",
                "label": "Query"
              },
              {
                "value": "mutations",
                "label": "Mutations"
              },
              {
                "value": "mutation",
                "label": "Mutation"
              },
              {
                "value": "resource",
                "label": "Resource"
              }
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "model",
            "label": "Model name",
            "description": "Singular or plural, e.g. user.",
            "type": "string",
            "position": 1,
            "sources": [
              "fig"
            ]
          },
          {
            "id": "context",
            "label": "Context folder",
            "type": "string",
            "option": [
              "--context",
              "-c"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "dry_run",
            "label": "Dry run",
            "type": "boolean",
            "option": [
              "--dry-run",
              "-d"
            ],
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "generate",
            "label": "Generate files",
            "fields": [
              "type",
              "model",
              "context",
              "dry_run"
            ],
            "required": [
              "type",
              "model"
            ]
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "type",
              "model",
              "context",
              "dry_run"
            ]
          }
        ]
      }
    ]
  }
}
