{
  "name": "deployctl",
  "description": "Command line tool for Deno Deploy",
  "options": [
    {
      "names": [
        "--help",
        "-h"
      ],
      "description": "Show help",
      "isPersistent": true
    },
    {
      "names": [
        "-V",
        "--version"
      ],
      "description": "Show the version"
    }
  ],
  "subcommands": [
    {
      "name": "deploy",
      "description": "Deploy a script with static files to Deno Deploy",
      "options": [
        {
          "names": [
            "--exclude"
          ],
          "description": "Exclude files that match this pattern",
          "args": [
            {
              "name": "pattern"
            }
          ]
        },
        {
          "names": [
            "--include"
          ],
          "description": "Only upload files that match this pattern",
          "args": [
            {
              "name": "pattern"
            }
          ]
        },
        {
          "names": [
            "--no-static"
          ],
          "description": "Don't include the files in the CWD as static files"
        },
        {
          "names": [
            "--prod"
          ],
          "description": "Create a production deployment (default is preview deployment)"
        },
        {
          "names": [
            "-p",
            "--project"
          ],
          "description": "The project to deploy to",
          "args": [
            {
              "name": "name"
            }
          ]
        },
        {
          "names": [
            "--token"
          ],
          "description": "The API token to use",
          "args": [
            {
              "name": "token"
            }
          ]
        }
      ],
      "args": [
        {
          "name": "entrypoint",
          "template": "filepaths"
        }
      ]
    },
    {
      "name": "upgrade",
      "description": "Upgrade deployctl",
      "args": [
        {
          "name": "version",
          "isOptional": true,
          "generators": [
            {
              "script": [
                "curl",
                "-sL",
                "https://cdn.deno.land/deploy/meta/versions.json"
              ],
              "cache": {
                "ttl": 86400000
              }
            }
          ]
        }
      ]
    }
  ]
}
