{
  "description": "Global options only; use the psql subcommand to open a psql session on a branch.",
  "name": "neonctl",
  "subcommands": [
    {
      "name": "psql",
      "description": "Connect to a Neon branch with psql. Arguments for psql after -- are left out.",
      "options": [
        {
          "names": [
            "--project-id"
          ],
          "description": "Project ID",
          "args": {
            "name": "project_id",
            "isOptional": false
          }
        },
        {
          "names": [
            "--role-name"
          ],
          "description": "Role",
          "args": {
            "name": "role_name",
            "isOptional": false
          }
        },
        {
          "names": [
            "--database-name"
          ],
          "description": "Database",
          "args": {
            "name": "database_name",
            "isOptional": false
          }
        },
        {
          "names": [
            "--pooled"
          ],
          "description": "Pooled connection"
        },
        {
          "names": [
            "--endpoint-type"
          ],
          "description": "Endpoint type",
          "args": {
            "name": "endpoint_type",
            "isOptional": false,
            "suggestions": [
              {
                "name": "read_only",
                "description": "Read only"
              },
              {
                "name": "read_write",
                "description": "Read write"
              }
            ]
          }
        }
      ],
      "args": [
        {
          "name": "branch",
          "description": "Branch name, or branch@timestamp / branch@lsn. Leave empty for the default branch.",
          "isOptional": true
        }
      ]
    }
  ]
}
