{
  "id": "build-storybook",
  "name": "Storybook build CLI",
  "description": "Builds a static Storybook for deployment.",
  "homepage": "https://storybook.js.org",
  "executables": [
    "build-storybook"
  ],
  "commands": {
    "format": 1,
    "label": "Build Storybook",
    "description": "Build a static Storybook. HTTPS and certificate options are left out.",
    "quality": "ai-draft",
    "base": "fig:build-storybook",
    "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/build-storybook.ts",
        "license": "MIT"
      }
    ],
    "field": [
      {
        "id": "output_dir",
        "label": "Output directory",
        "type": "path",
        "option": [
          "-o",
          "--output-dir"
        ],
        "path": {
          "kind": "directory",
          "role": "output",
          "must_exist": false
        },
        "effect": "overwrite",
        "sources": [
          "fig"
        ]
      },
      {
        "id": "config_dir",
        "label": "Config directory",
        "type": "path",
        "option": [
          "-c",
          "--config-dir"
        ],
        "path": {
          "kind": "directory",
          "role": "input",
          "must_exist": true
        },
        "sources": [
          "fig"
        ]
      },
      {
        "id": "static_dir",
        "label": "Static directories",
        "description": "Comma-separated list of directories to load static files from.",
        "type": "string",
        "option": [
          "-s",
          "--static-dir"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "loglevel",
        "label": "Log level",
        "type": "enum",
        "option": [
          "--loglevel"
        ],
        "choices": [
          {
            "value": "silly",
            "label": "Silly"
          },
          {
            "value": "verbose",
            "label": "Verbose"
          },
          {
            "value": "info",
            "label": "Info"
          },
          {
            "value": "warn",
            "label": "Warn"
          },
          {
            "value": "error",
            "label": "Error"
          },
          {
            "value": "silent",
            "label": "Silent"
          }
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "quiet",
        "label": "Quiet",
        "description": "Suppress verbose build output.",
        "type": "boolean",
        "option": [
          "--quiet"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "ci",
        "label": "CI mode",
        "description": "Skip interactive prompts.",
        "type": "boolean",
        "option": [
          "--ci"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "docs",
        "label": "Documentation mode",
        "type": "boolean",
        "option": [
          "--docs"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "watch",
        "label": "Watch mode",
        "type": "boolean",
        "option": [
          "-w",
          "--watch"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "stats_json",
        "label": "Write Webpack stats JSON",
        "type": "path",
        "option": [
          "--webpack-stats-json"
        ],
        "path": {
          "kind": "directory",
          "role": "output",
          "must_exist": false
        },
        "sources": [
          "fig"
        ]
      }
    ],
    "task": [
      {
        "id": "build",
        "label": "Build static Storybook",
        "fields": [
          "output_dir",
          "config_dir"
        ],
        "required": []
      },
      {
        "id": "ci-build",
        "label": "Build in CI",
        "fields": [
          "output_dir",
          "quiet",
          "ci"
        ],
        "required": [],
        "set": {
          "ci": [
            true
          ],
          "quiet": [
            true
          ]
        }
      }
    ],
    "group": [
      {
        "id": "basic",
        "label": "Basic",
        "fields": [
          "output_dir",
          "config_dir",
          "static_dir",
          "quiet",
          "ci"
        ]
      },
      {
        "id": "advanced",
        "label": "Advanced",
        "fields": [
          "loglevel",
          "docs",
          "watch",
          "stats_json"
        ]
      }
    ]
  }
}
