id = "mgnl" name = "Magnolia CLI" description = "Command line interface for light development with Magnolia CMS." executables = ["mgnl"] [commands] format = 1 label = "Magnolia CLI" description = "Create page templates, install light modules and start Magnolia." quality = "ai-draft" base = "fig:mgnl" 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/mgnl.ts" license = "MIT" [[commands.subcommand]] path = ["create-page"] label = "Create a page template" description = "Create a new page template in a light module." [[commands.subcommand.source]] id = "fig" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/mgnl.ts" license = "MIT" [[commands.subcommand.field]] id = "template" label = "Template name" description = "Cannot contain spaces." type = "string" position = 0 sources = ["fig"] [[commands.subcommand.field]] id = "path" label = "Light module path" type = "path" option = ["--path", "-p"] path = { kind = "directory", role = "input" } sources = ["fig"] [[commands.subcommand.field]] id = "prototype" label = "Prototype" type = "string" option = ["--prototype", "-P"] sources = ["fig"] [[commands.subcommand.task]] id = "create" label = "Create page" fields = ["template", "path"] required = ["template"] [[commands.subcommand.group]] id = "basic" label = "Basic" fields = ["template", "path", "prototype"] [[commands.subcommand]] path = ["install"] label = "Install light modules" description = "Download light modules from npm." [[commands.subcommand.source]] id = "fig" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/mgnl.ts" license = "MIT" [[commands.subcommand.field]] id = "modules" label = "Module names" type = "string" position = 0 multiple = true sources = ["fig"] [[commands.subcommand.field]] id = "path" label = "Light-modules folder" type = "path" option = ["--path", "-p"] path = { kind = "directory", role = "input" } sources = ["fig"] [[commands.subcommand.task]] id = "install" label = "Install" fields = ["modules", "path"] required = ["modules"] [[commands.subcommand.group]] id = "basic" label = "Basic" fields = ["modules", "path"] [[commands.subcommand]] path = ["start"] label = "Start Magnolia" description = "Start Magnolia and show the main log." [[commands.subcommand.source]] id = "fig" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/mgnl.ts" license = "MIT" [[commands.subcommand.field]] id = "path" label = "apache-tomcat folder" type = "path" option = ["--path", "-p"] path = { kind = "directory", role = "input" } sources = ["fig"] [[commands.subcommand.field]] id = "check_limit" label = "Do not ignore open files limit check" type = "boolean" option = ["-d"] sources = ["fig"] [[commands.subcommand.task]] id = "start" label = "Start" fields = ["path"] [[commands.subcommand.group]] id = "basic" label = "Basic" fields = ["path", "check_limit"]