{
  "id": "django-admin",
  "name": "django-admin",
  "description": "Django's command-line utility for administrative tasks.",
  "homepage": "https://docs.djangoproject.com/en/stable/ref/django-admin/",
  "executables": [
    "django-admin"
  ],
  "commands": {
    "format": 1,
    "label": "Django admin",
    "description": "Common jobs: start a dev server, create and apply migrations, start a project. Global options such as --settings are left out.",
    "quality": "ai-draft",
    "base": "fig:django-admin",
    "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/django-admin.ts",
        "license": "MIT"
      }
    ],
    "subcommand": [
      {
        "path": [
          "runserver"
        ],
        "label": "Run the development server",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/django-admin.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "addrport",
            "label": "Address and port",
            "type": "string",
            "position": 0,
            "sources": [
              "fig"
            ]
          },
          {
            "id": "noreload",
            "label": "Disable auto-reloader",
            "type": "boolean",
            "option": [
              "--noreload"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "nothreading",
            "label": "Disable threading",
            "type": "boolean",
            "option": [
              "--nothreading"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "ipv6",
            "label": "Use IPv6",
            "type": "boolean",
            "option": [
              "--ipv6",
              "-6"
            ],
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "serve",
            "label": "Serve on a port",
            "fields": [
              "addrport",
              "noreload"
            ],
            "required": []
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "addrport",
              "noreload",
              "ipv6",
              "nothreading"
            ]
          }
        ]
      },
      {
        "path": [
          "makemigrations"
        ],
        "label": "Create migrations",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/django-admin.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "app_labels",
            "label": "App labels",
            "type": "string",
            "position": 0,
            "multiple": true,
            "sources": [
              "fig"
            ]
          },
          {
            "id": "dry_run",
            "label": "Dry run",
            "type": "boolean",
            "option": [
              "--dry-run"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "name",
            "label": "Migration name",
            "type": "string",
            "option": [
              "--name",
              "-n"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "empty",
            "label": "Create an empty migration",
            "type": "boolean",
            "option": [
              "--empty"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "check",
            "label": "Fail if migrations are missing",
            "type": "boolean",
            "option": [
              "--check"
            ],
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "preview",
            "label": "Preview migrations",
            "set": {
              "dry_run": [
                true
              ]
            },
            "fields": [
              "app_labels",
              "dry_run"
            ],
            "required": []
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "app_labels",
              "dry_run",
              "name"
            ]
          },
          {
            "id": "advanced",
            "label": "Advanced",
            "fields": [
              "empty",
              "check"
            ]
          }
        ]
      },
      {
        "path": [
          "migrate"
        ],
        "label": "Apply migrations",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/django-admin.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "app_label",
            "label": "App label",
            "type": "string",
            "position": 0,
            "sources": [
              "fig"
            ]
          },
          {
            "id": "migration_name",
            "label": "Target migration (zero unapplies all)",
            "type": "string",
            "position": 1,
            "sources": [
              "fig"
            ]
          },
          {
            "id": "plan",
            "label": "Show planned actions",
            "type": "boolean",
            "option": [
              "--plan"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "fake",
            "label": "Mark as run without running",
            "type": "boolean",
            "option": [
              "--fake"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "database",
            "label": "Database",
            "type": "string",
            "option": [
              "--database"
            ],
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "plan",
            "label": "Show the plan",
            "set": {
              "plan": [
                true
              ]
            },
            "fields": [
              "app_label",
              "plan"
            ],
            "required": []
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "app_label",
              "migration_name",
              "plan",
              "database"
            ]
          },
          {
            "id": "advanced",
            "label": "Advanced",
            "fields": [
              "fake"
            ]
          }
        ]
      },
      {
        "path": [
          "startproject"
        ],
        "label": "Start a new project",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/django-admin.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "name",
            "label": "Project name",
            "type": "string",
            "position": 0,
            "sources": [
              "fig"
            ]
          },
          {
            "id": "directory",
            "label": "Destination directory",
            "type": "path",
            "path": {
              "kind": "directory",
              "role": "output"
            },
            "position": 1,
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "new",
            "label": "Create a project",
            "fields": [
              "name",
              "directory"
            ],
            "required": [
              "name"
            ]
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "name",
              "directory"
            ]
          }
        ]
      }
    ]
  }
}
