id = "shadcn-ui" name = "shadcn/ui CLI" description = "Add shadcn/ui components to a project." executables = ["shadcn-ui"] [commands] format = 1 label = "shadcn-ui" description = "Initialize a project or add components. The diff subcommand is left out." quality = "ai-draft" base = "fig:shadcn-ui" 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/shadcn-ui.ts" license = "MIT" [[commands.subcommand]] path = ["init"] label = "Initialize project" [[commands.subcommand.source]] id = "fig" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/shadcn-ui.ts" license = "MIT" [[commands.subcommand.field]] id = "yes" label = "Skip confirmation" type = "boolean" option = ["-y", "--yes"] sources = ["fig"] [[commands.subcommand.field]] id = "cwd" label = "Working directory" type = "path" option = ["-c", "--cwd"] path = { kind = "directory", role = "input", must_exist = true } sources = ["fig"] [[commands.subcommand.task]] id = "init" label = "Initialize" set = { yes = [true] } fields = ["yes", "cwd"] required = [] [[commands.subcommand.group]] id = "basic" label = "Basic" fields = ["yes", "cwd"] [[commands.subcommand]] path = ["add"] label = "Add components" [[commands.subcommand.source]] id = "fig" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/shadcn-ui.ts" license = "MIT" [[commands.subcommand.field]] id = "components" label = "Components" description = "e.g. button dialog" type = "string" position = 0 multiple = true sources = ["fig"] [[commands.subcommand.field]] id = "yes" label = "Skip confirmation" type = "boolean" option = ["-y", "--yes"] sources = ["fig"] [[commands.subcommand.field]] id = "overwrite" label = "Overwrite existing" type = "boolean" option = ["-o", "--overwrite"] sources = ["fig"] [[commands.subcommand.field]] id = "cwd" label = "Working directory" type = "path" option = ["-c", "--cwd"] path = { kind = "directory", role = "input", must_exist = true } sources = ["fig"] [[commands.subcommand.field]] id = "path" label = "Target path" type = "string" option = ["-p", "--path"] sources = ["fig"] [[commands.subcommand.task]] id = "add" label = "Add components" fields = ["components", "yes", "overwrite"] required = ["components"] [[commands.subcommand.group]] id = "basic" label = "Basic" fields = ["components", "yes", "overwrite"] [[commands.subcommand.group]] id = "advanced" label = "Advanced" fields = ["cwd", "path"]