{
  "description": "Build a project and create a new one. Environments, versioning, publishing and other subcommands are left out.",
  "name": "hatch",
  "subcommands": [
    {
      "name": "build",
      "description": "Build sdist and wheel artifacts.",
      "options": [
        {
          "names": [
            "--target",
            "-t"
          ],
          "description": "Target",
          "args": {
            "name": "target",
            "isOptional": false,
            "isVariadic": true,
            "suggestions": [
              {
                "name": "sdist",
                "description": "sdist"
              },
              {
                "name": "wheel",
                "description": "wheel"
              }
            ]
          },
          "isRepeatable": true
        },
        {
          "names": [
            "--clean",
            "-c"
          ],
          "description": "Remove existing artifacts first",
          "isDangerous": true
        },
        {
          "names": [
            "--no-hooks"
          ],
          "description": "Disable build hooks"
        },
        {
          "names": [
            "--hooks-only"
          ],
          "description": "Only run build hooks"
        }
      ],
      "args": [
        {
          "name": "location",
          "isOptional": true,
          "template": "folders"
        }
      ]
    },
    {
      "name": "new",
      "description": "Create or initialize a project.",
      "options": [
        {
          "names": [
            "--cli"
          ],
          "description": "Add a command line interface"
        },
        {
          "names": [
            "--init"
          ],
          "description": "Initialize existing project"
        }
      ],
      "args": [
        {
          "name": "name",
          "isOptional": true
        },
        {
          "name": "location",
          "isOptional": true,
          "template": "folders"
        }
      ]
    }
  ]
}
