{
  "id": "netlify",
  "name": "Netlify CLI",
  "homepage": "https://cli.netlify.com",
  "description": "Interact with Netlify from the comfort of your CLI.",
  "icon": "SimpleIcons:netlify",
  "executables": [
    "netlify",
    "ntl"
  ],
  "dotfiles": {
    "paths": [
      "~/Library/Preferences/netlify/config.json",
      "~/.config/netlify/config.json",
      "%APPDATA%/netlify/Config/config.json"
    ],
    "exclude": [],
    "secret": [],
    "secret_paths": [
      {
        "file": [
          "~/Library/Preferences/netlify/config.json",
          "~/.config/netlify/config.json",
          "%APPDATA%/netlify/Config/config.json"
        ],
        "match": {
          "key_path": [
            "users.*.auth.token",
            "users.*.auth.github.token"
          ]
        }
      }
    ],
    "machine_lines": [
      {
        "file": [
          "~/Library/Preferences/netlify/config.json",
          "~/.config/netlify/config.json",
          "%APPDATA%/netlify/Config/config.json"
        ],
        "match": {
          "key_path": [
            "cliId"
          ]
        }
      }
    ]
  },
  "commands": {
    "format": 1,
    "label": "Netlify CLI",
    "description": "Global options only; use the Deploy and Dev subcommands.",
    "quality": "ai-draft",
    "base": "fig:netlify",
    "parser": {
      "end_of_options": "--",
      "interleave": "permute",
      "long_equals": true,
      "short_attached": false,
      "short_bundles": false
    },
    "source": [
      {
        "id": "fig",
        "kind": "completion",
        "url": "https://github.com/withfig/autocomplete/blob/master/src/netlify.ts",
        "license": "MIT"
      }
    ],
    "subcommand": [
      {
        "path": [
          "deploy"
        ],
        "label": "Deploy site",
        "description": "Create a deploy from a folder. Auth tokens and proxy settings are left out.",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/netlify.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "dir",
            "label": "Folder to deploy",
            "type": "path",
            "option": [
              "--dir",
              "-d"
            ],
            "path": {
              "kind": "directory",
              "role": "input"
            },
            "sources": [
              "fig"
            ]
          },
          {
            "id": "functions",
            "label": "Functions folder",
            "type": "path",
            "option": [
              "--functions",
              "-f"
            ],
            "path": {
              "kind": "directory",
              "role": "input"
            },
            "sources": [
              "fig"
            ]
          },
          {
            "id": "message",
            "label": "Deploy message",
            "type": "string",
            "option": [
              "--message",
              "-m"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "prod",
            "label": "Deploy to production",
            "type": "boolean",
            "option": [
              "--prod",
              "-p"
            ],
            "effect": "overwrite",
            "sources": [
              "fig"
            ]
          },
          {
            "id": "build",
            "label": "Run build first",
            "type": "boolean",
            "option": [
              "--build"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "site",
            "label": "Site ID",
            "type": "string",
            "option": [
              "--site",
              "-s"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "alias",
            "label": "Deploy alias",
            "type": "string",
            "option": [
              "--alias"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "open",
            "label": "Open site after deploy",
            "type": "boolean",
            "option": [
              "--open",
              "-o"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "json",
            "label": "JSON output",
            "type": "boolean",
            "option": [
              "--json"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "prod_if_unlocked",
            "label": "Production if unlocked",
            "type": "boolean",
            "option": [
              "--prodIfUnlocked"
            ],
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "draft",
            "label": "Draft deploy",
            "fields": [
              "dir",
              "message",
              "build",
              "alias"
            ],
            "required": []
          },
          {
            "id": "prod",
            "label": "Production deploy",
            "fields": [
              "dir",
              "message",
              "build"
            ],
            "required": [],
            "set": {
              "prod": [
                true
              ]
            }
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "dir",
              "message",
              "prod",
              "build"
            ]
          },
          {
            "id": "advanced",
            "label": "Advanced",
            "fields": [
              "functions",
              "site",
              "alias",
              "open",
              "json",
              "prod_if_unlocked"
            ]
          }
        ]
      },
      {
        "path": [
          "dev"
        ],
        "label": "Local dev server",
        "description": "Run the local dev server.",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/netlify.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "command",
            "label": "Command to run",
            "type": "string",
            "option": [
              "--command",
              "-c"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "port",
            "label": "Port",
            "type": "integer",
            "option": [
              "--port",
              "-p"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "target_port",
            "label": "Target app port",
            "type": "integer",
            "option": [
              "--targetPort"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "dir",
            "label": "Static files dir",
            "type": "path",
            "option": [
              "--dir",
              "-d"
            ],
            "path": {
              "kind": "directory",
              "role": "input"
            },
            "sources": [
              "fig"
            ]
          },
          {
            "id": "functions",
            "label": "Functions folder",
            "type": "path",
            "option": [
              "--functions",
              "-f"
            ],
            "path": {
              "kind": "directory",
              "role": "input"
            },
            "sources": [
              "fig"
            ]
          },
          {
            "id": "live",
            "label": "Public live session",
            "type": "boolean",
            "option": [
              "--live",
              "-l"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "offline",
            "label": "Offline",
            "type": "boolean",
            "option": [
              "--offline",
              "-o"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "framework",
            "label": "Framework",
            "type": "string",
            "option": [
              "--framework"
            ],
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "dev",
            "label": "Start dev server",
            "fields": [
              "port",
              "command",
              "framework"
            ],
            "required": []
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "command",
              "port"
            ]
          },
          {
            "id": "advanced",
            "label": "Advanced",
            "fields": [
              "target_port",
              "dir",
              "functions",
              "live",
              "offline",
              "framework"
            ]
          }
        ]
      }
    ]
  }
}
