{
  "id": "serverless",
  "name": "Serverless Framework",
  "homepage": "https://www.serverless.com/framework",
  "description": "Makes it easy to use AWS Lambda and other managed cloud services to build applications that auto-scale and cost nothing when idle.",
  "icon": "SimpleIcons:serverless",
  "executables": [
    "serverless",
    "sls"
  ],
  "dotfiles": {
    "paths": [
      "~/.serverlessrc",
      "~/.config/.serverlessrc"
    ],
    "exclude": [],
    "secret": [],
    "side_effect": false,
    "secret_paths": [
      {
        "file": [
          "~/.serverlessrc",
          "~/.config/.serverlessrc"
        ],
        "format": "json",
        "match": {
          "key_path": [
            "auth.idToken",
            "auth.refreshToken"
          ]
        }
      }
    ],
    "machine_lines": [
      {
        "file": [
          "~/.serverlessrc",
          "~/.config/.serverlessrc"
        ],
        "format": "json",
        "match": {
          "key_path": [
            "frameworkId"
          ]
        }
      }
    ]
  },
  "commands": {
    "format": 1,
    "label": "Serverless Framework",
    "description": "Deploy a service. Other commands are not included.",
    "quality": "ai-draft",
    "base": "fig:serverless",
    "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/serverless.ts",
        "license": "MIT"
      }
    ],
    "subcommand": [
      {
        "path": [
          "deploy"
        ],
        "label": "Deploy",
        "description": "Deploy a Serverless service.",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/serverless.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "stage",
            "label": "Stage",
            "type": "string",
            "option": [
              "--stage",
              "-s"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "region",
            "label": "Region",
            "type": "string",
            "option": [
              "--region",
              "-r"
            ],
            "suggestions": [
              {
                "value": "us-east-1",
                "label": "us-east-1"
              },
              {
                "value": "us-east-2",
                "label": "us-east-2"
              },
              {
                "value": "us-west-1",
                "label": "us-west-1"
              },
              {
                "value": "us-west-2",
                "label": "us-west-2"
              },
              {
                "value": "eu-west-1",
                "label": "eu-west-1"
              },
              {
                "value": "ap-northeast-1",
                "label": "ap-northeast-1"
              },
              {
                "value": "ap-southeast-1",
                "label": "ap-southeast-1"
              }
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "aws_profile",
            "label": "AWS profile",
            "type": "string",
            "option": [
              "--aws-profile"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "config",
            "label": "Config file",
            "type": "path",
            "option": [
              "--config",
              "-c"
            ],
            "path": {
              "kind": "file",
              "role": "input"
            },
            "sources": [
              "fig"
            ]
          },
          {
            "id": "function",
            "label": "Single function",
            "type": "string",
            "option": [
              "--function",
              "-f"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "force",
            "label": "Force deployment",
            "type": "boolean",
            "option": [
              "--force"
            ],
            "effect": "overwrite",
            "sources": [
              "fig"
            ]
          },
          {
            "id": "conceal",
            "label": "Hide secrets in output",
            "type": "boolean",
            "option": [
              "--conceal"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "package",
            "label": "Deployment package directory",
            "type": "path",
            "option": [
              "--package",
              "-p"
            ],
            "path": {
              "kind": "directory",
              "role": "input"
            },
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "deploy",
            "label": "Deploy",
            "fields": [
              "stage",
              "region",
              "aws_profile"
            ]
          },
          {
            "id": "fn",
            "label": "Deploy one function",
            "fields": [
              "function",
              "stage",
              "region"
            ],
            "required": [
              "function"
            ]
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "stage",
              "region",
              "aws_profile",
              "function"
            ]
          },
          {
            "id": "advanced",
            "label": "Advanced",
            "fields": [
              "config",
              "force",
              "conceal",
              "package"
            ]
          }
        ]
      }
    ]
  }
}
