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 } [[commands.source]] id = "fig" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/blitz.ts" license = "MIT" [[commands.subcommand]] path = ["new"] label = "New project" [[commands.subcommand.source]] id = "fig" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/blitz.ts" license = "MIT" [[commands.subcommand.field]] id = "name" label = "Project name" type = "string" position = 0 sources = ["fig"] [[commands.subcommand.field]] id = "npm" label = "Use npm" type = "boolean" option = ["--npm"] sources = ["fig"] [[commands.subcommand.field]] id = "yarn" label = "Use yarn" type = "boolean" option = ["--yarn"] sources = ["fig"] [[commands.subcommand.field]] 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"] [[commands.subcommand.field]] 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"] [[commands.subcommand.field]] id = "no_git" label = "Skip git repository" type = "boolean" option = ["--no-git"] sources = ["fig"] [[commands.subcommand.task]] id = "new" label = "Create a project" fields = ["name", "npm", "form"] required = ["name"] [[commands.subcommand.group]] id = "basic" label = "Basic" fields = ["name", "npm", "yarn", "form"] [[commands.subcommand.group]] id = "advanced" label = "Advanced" fields = ["dry_run", "no_git"] [[commands.subcommand]] path = ["dev"] label = "Development server" [[commands.subcommand.source]] id = "fig" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/blitz.ts" license = "MIT" [[commands.subcommand.field]] id = "port" label = "Port" type = "integer" option = ["--port", "-p"] sources = ["fig"] [[commands.subcommand.field]] id = "hostname" label = "Hostname" type = "string" option = ["--hostname", "-H"] sources = ["fig"] [[commands.subcommand.field]] id = "inspect" label = "Node.js inspector" type = "boolean" option = ["--inspect"] sources = ["fig"] [[commands.subcommand.task]] id = "dev" label = "Start the dev server" fields = ["port", "hostname"] required = [] [[commands.subcommand.group]] id = "basic" label = "Basic" fields = ["port", "hostname", "inspect"] [[commands.subcommand]] path = ["start"] label = "Production server" [[commands.subcommand.source]] id = "fig" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/blitz.ts" license = "MIT" [[commands.subcommand.field]] id = "port" label = "Port" type = "integer" option = ["--port", "-p"] sources = ["fig"] [[commands.subcommand.field]] id = "hostname" label = "Hostname" type = "string" option = ["--hostname", "-H"] sources = ["fig"] [[commands.subcommand.task]] id = "start" label = "Start the production server" fields = ["port", "hostname"] required = [] [[commands.subcommand.group]] id = "basic" label = "Basic" fields = ["port", "hostname"] [[commands.subcommand]] path = ["generate"] label = "Generate code" [[commands.subcommand.source]] id = "fig" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/blitz.ts" license = "MIT" [[commands.subcommand.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"] [[commands.subcommand.field]] id = "model" label = "Model name" description = "Singular or plural, e.g. user." type = "string" position = 1 sources = ["fig"] [[commands.subcommand.field]] id = "context" label = "Context folder" type = "string" option = ["--context", "-c"] sources = ["fig"] [[commands.subcommand.field]] id = "dry_run" label = "Dry run" type = "boolean" option = ["--dry-run", "-d"] sources = ["fig"] [[commands.subcommand.task]] id = "generate" label = "Generate files" fields = ["type", "model", "context", "dry_run"] required = ["type", "model"] [[commands.subcommand.group]] id = "basic" label = "Basic" fields = ["type", "model", "context", "dry_run"]