id = "create-vite" name = "create-vite" description = "Create a new project powered by Vite." executables = ["create-vite"] [commands] format = 1 label = "Create Vite project" description = "Scaffold a Vite project from a template." quality = "ai-draft" base = "fig:create-vite" 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/create-vite.ts" license = "MIT" [[commands.field]] id = "project_name" label = "Project directory" type = "path" path = { kind = "directory", role = "output" } position = 0 min = 1 sources = ["fig"] [[commands.field]] id = "template" label = "Template" type = "string" option = ["--template"] suggestions = [{ value = "vanilla", label = "vanilla" }, { value = "vanilla-ts", label = "vanilla-ts" }, { value = "vue", label = "vue" }, { value = "vue-ts", label = "vue-ts" }, { value = "react", label = "react" }, { value = "react-ts", label = "react-ts" }, { value = "react-swc", label = "react-swc" }, { value = "react-swc-ts", label = "react-swc-ts" }, { value = "preact", label = "preact" }, { value = "preact-ts", label = "preact-ts" }, { value = "lit", label = "lit" }, { value = "lit-ts", label = "lit-ts" }, { value = "svelte", label = "svelte" }, { value = "svelte-ts", label = "svelte-ts" }, { value = "solid", label = "solid" }] sources = ["fig"] [[commands.task]] id = "react-ts" label = "React + TypeScript" set = { template = ["react-ts"] } fields = ["project_name", "template"] required = ["project_name", "template"] [[commands.group]] id = "basic" label = "Basic" fields = ["project_name", "template"]