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