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 } [[commands.source]] id = "fig" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/django-admin.ts" license = "MIT" [[commands.subcommand]] path = ["runserver"] label = "Run the development server" [[commands.subcommand.source]] id = "fig" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/django-admin.ts" license = "MIT" [[commands.subcommand.field]] id = "addrport" label = "Address and port" type = "string" position = 0 sources = ["fig"] [[commands.subcommand.field]] id = "noreload" label = "Disable auto-reloader" type = "boolean" option = ["--noreload"] sources = ["fig"] [[commands.subcommand.field]] id = "nothreading" label = "Disable threading" type = "boolean" option = ["--nothreading"] sources = ["fig"] [[commands.subcommand.field]] id = "ipv6" label = "Use IPv6" type = "boolean" option = ["--ipv6", "-6"] sources = ["fig"] [[commands.subcommand.task]] id = "serve" label = "Serve on a port" fields = ["addrport", "noreload"] required = [] [[commands.subcommand.group]] id = "basic" label = "Basic" fields = ["addrport", "noreload", "ipv6", "nothreading"] [[commands.subcommand]] path = ["makemigrations"] label = "Create migrations" [[commands.subcommand.source]] id = "fig" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/django-admin.ts" license = "MIT" [[commands.subcommand.field]] id = "app_labels" label = "App labels" type = "string" position = 0 multiple = true sources = ["fig"] [[commands.subcommand.field]] id = "dry_run" label = "Dry run" type = "boolean" option = ["--dry-run"] sources = ["fig"] [[commands.subcommand.field]] id = "name" label = "Migration name" type = "string" option = ["--name", "-n"] sources = ["fig"] [[commands.subcommand.field]] id = "empty" label = "Create an empty migration" type = "boolean" option = ["--empty"] sources = ["fig"] [[commands.subcommand.field]] id = "check" label = "Fail if migrations are missing" type = "boolean" option = ["--check"] sources = ["fig"] [[commands.subcommand.task]] id = "preview" label = "Preview migrations" set = { dry_run = [true] } fields = ["app_labels", "dry_run"] required = [] [[commands.subcommand.group]] id = "basic" label = "Basic" fields = ["app_labels", "dry_run", "name"] [[commands.subcommand.group]] id = "advanced" label = "Advanced" fields = ["empty", "check"] [[commands.subcommand]] path = ["migrate"] label = "Apply migrations" [[commands.subcommand.source]] id = "fig" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/django-admin.ts" license = "MIT" [[commands.subcommand.field]] id = "app_label" label = "App label" type = "string" position = 0 sources = ["fig"] [[commands.subcommand.field]] id = "migration_name" label = "Target migration (zero unapplies all)" type = "string" position = 1 sources = ["fig"] [[commands.subcommand.field]] id = "plan" label = "Show planned actions" type = "boolean" option = ["--plan"] sources = ["fig"] [[commands.subcommand.field]] id = "fake" label = "Mark as run without running" type = "boolean" option = ["--fake"] sources = ["fig"] [[commands.subcommand.field]] id = "database" label = "Database" type = "string" option = ["--database"] sources = ["fig"] [[commands.subcommand.task]] id = "plan" label = "Show the plan" set = { plan = [true] } fields = ["app_label", "plan"] required = [] [[commands.subcommand.group]] id = "basic" label = "Basic" fields = ["app_label", "migration_name", "plan", "database"] [[commands.subcommand.group]] id = "advanced" label = "Advanced" fields = ["fake"] [[commands.subcommand]] path = ["startproject"] label = "Start a new project" [[commands.subcommand.source]] id = "fig" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/django-admin.ts" license = "MIT" [[commands.subcommand.field]] id = "name" label = "Project name" type = "string" position = 0 sources = ["fig"] [[commands.subcommand.field]] id = "directory" label = "Destination directory" type = "path" path = { kind = "directory", role = "output" } position = 1 sources = ["fig"] [[commands.subcommand.task]] id = "new" label = "Create a project" fields = ["name", "directory"] required = ["name"] [[commands.subcommand.group]] id = "basic" label = "Basic" fields = ["name", "directory"]