{
  "id": "pscale",
  "name": "PlanetScale CLI",
  "homepage": "https://github.com/planetscale/cli",
  "description": "The pscale command line tool brings branches, deploy requests, and other PlanetScale concepts to your fingertips.",
  "icon": "SimpleIcons:planetscale",
  "executables": [
    "pscale"
  ],
  "dotfiles": {
    "paths": [
      "~/.config/planetscale/pscale.yml"
    ],
    "exclude": [],
    "secret": [
      "~/.config/planetscale/access-token"
    ],
    "side_effect": false
  },
  "commands": {
    "format": 1,
    "label": "PlanetScale CLI",
    "description": "Use the subcommand tabs to create databases and branches or open a local connection. Other commands and authentication options are left out.",
    "quality": "ai-draft",
    "base": "fig:pscale",
    "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/pscale.ts",
        "license": "MIT"
      }
    ],
    "subcommand": [
      {
        "path": [
          "database",
          "create"
        ],
        "label": "Create a database",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/pscale.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "database",
            "label": "Database name",
            "type": "string",
            "position": 0,
            "sources": [
              "fig"
            ]
          },
          {
            "id": "region",
            "label": "Region",
            "description": "Region for the database.",
            "type": "string",
            "option": [
              "--region"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "notes",
            "label": "Notes",
            "type": "string",
            "option": [
              "--notes"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "web",
            "label": "Open in browser",
            "type": "boolean",
            "option": [
              "--web"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "format",
            "label": "Output format",
            "type": "string",
            "option": [
              "--format",
              "-f"
            ],
            "suggestions": [
              {
                "value": "human",
                "label": "Human"
              },
              {
                "value": "json",
                "label": "JSON"
              },
              {
                "value": "csv",
                "label": "CSV"
              }
            ],
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "create",
            "label": "Create database",
            "fields": [
              "database",
              "region",
              "notes"
            ],
            "required": [
              "database"
            ]
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "database",
              "region",
              "notes"
            ]
          },
          {
            "id": "advanced",
            "label": "Advanced",
            "fields": [
              "web",
              "format"
            ]
          }
        ]
      },
      {
        "path": [
          "branch",
          "create"
        ],
        "label": "Create a branch",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/pscale.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "database",
            "label": "Source database",
            "type": "string",
            "position": 0,
            "sources": [
              "fig"
            ]
          },
          {
            "id": "branch",
            "label": "New branch",
            "type": "string",
            "position": 1,
            "sources": [
              "fig"
            ]
          },
          {
            "id": "from",
            "label": "From branch",
            "description": "Branch to be created from.",
            "type": "string",
            "option": [
              "--from"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "region",
            "label": "Region",
            "type": "string",
            "option": [
              "--region"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "restore",
            "label": "Backup to restore",
            "type": "string",
            "option": [
              "--restore"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "web",
            "label": "Open in browser",
            "type": "boolean",
            "option": [
              "--web",
              "-w"
            ],
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "create",
            "label": "Create branch",
            "fields": [
              "database",
              "branch",
              "from"
            ],
            "required": [
              "database",
              "branch"
            ]
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "database",
              "branch",
              "from"
            ]
          },
          {
            "id": "advanced",
            "label": "Advanced",
            "fields": [
              "region",
              "restore",
              "web"
            ]
          }
        ]
      },
      {
        "path": [
          "connect"
        ],
        "label": "Connect locally",
        "description": "Open a secure local proxy to a database branch.",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/pscale.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "database",
            "label": "Database",
            "type": "string",
            "position": 0,
            "sources": [
              "fig"
            ]
          },
          {
            "id": "branch",
            "label": "Branch",
            "type": "string",
            "position": 1,
            "sources": [
              "fig"
            ]
          },
          {
            "id": "port",
            "label": "Local port",
            "type": "string",
            "option": [
              "--port"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "host",
            "label": "Local host",
            "type": "string",
            "option": [
              "--host"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "org",
            "label": "Organization",
            "type": "string",
            "option": [
              "--org"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "execute",
            "label": "Command to run after connecting",
            "type": "string",
            "option": [
              "--execute"
            ],
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "proxy",
            "label": "Open proxy",
            "fields": [
              "database",
              "branch",
              "port"
            ],
            "required": [
              "database",
              "branch"
            ]
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "database",
              "branch",
              "port",
              "host",
              "org",
              "execute"
            ]
          }
        ]
      }
    ]
  }
}
