{
  "id": "teleport",
  "name": "Teleport",
  "homepage": "https://goteleport.com/",
  "description": "Secure access to SSH servers, Kubernetes clusters, databases and applications.",
  "executables": [
    "tsh"
  ],
  "dotfiles": {
    "paths": [
      "~/.tsh/config/config.yaml"
    ],
    "secret": [
      "~/.tsh/"
    ],
    "side_effect": false
  },
  "commands": {
    "format": 1,
    "label": "Teleport tsh",
    "description": "Log in to a Teleport cluster, list nodes and open SSH sessions. Databases, Kubernetes, apps and access requests are left out.",
    "quality": "ai-draft",
    "base": "fig:tsh",
    "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/tsh.ts",
        "license": "MIT"
      }
    ],
    "subcommand": [
      {
        "path": [
          "login"
        ],
        "label": "Log in",
        "description": "Log in to a cluster and fetch a session certificate.",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/tsh.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "proxy",
            "label": "Proxy address",
            "type": "string",
            "option": [
              "--proxy"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "user",
            "label": "User",
            "type": "string",
            "option": [
              "--user"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "auth",
            "label": "Auth connector",
            "type": "string",
            "option": [
              "--auth"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "ttl",
            "label": "Minutes to live",
            "type": "string",
            "option": [
              "--ttl"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "insecure",
            "label": "Skip certificate verification",
            "type": "boolean",
            "option": [
              "--insecure"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "format",
            "label": "Output format",
            "type": "enum",
            "option": [
              "-f",
              "--format"
            ],
            "choices": [
              {
                "value": "text",
                "label": "Text"
              },
              {
                "value": "json",
                "label": "JSON"
              },
              {
                "value": "yaml",
                "label": "YAML"
              }
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "quiet",
            "label": "Quiet",
            "type": "boolean",
            "option": [
              "-q",
              "--quiet"
            ],
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "login",
            "label": "Log in to proxy",
            "fields": [
              "proxy",
              "user",
              "auth"
            ],
            "required": [
              "proxy"
            ]
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "proxy",
              "user",
              "auth",
              "ttl",
              "format",
              "quiet",
              "insecure"
            ]
          }
        ]
      },
      {
        "path": [
          "ls"
        ],
        "label": "List nodes",
        "description": "List remote SSH nodes.",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/tsh.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "format",
            "label": "Output format",
            "type": "enum",
            "option": [
              "-f",
              "--format"
            ],
            "choices": [
              {
                "value": "text",
                "label": "Text"
              },
              {
                "value": "json",
                "label": "JSON"
              },
              {
                "value": "yaml",
                "label": "YAML"
              }
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "quiet",
            "label": "Quiet",
            "type": "boolean",
            "option": [
              "-q",
              "--quiet"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "proxy",
            "label": "Proxy address",
            "type": "string",
            "option": [
              "--proxy"
            ],
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "ls",
            "label": "List nodes",
            "fields": [
              "format"
            ],
            "required": []
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "format",
              "quiet",
              "proxy"
            ]
          }
        ]
      },
      {
        "path": [
          "ssh"
        ],
        "label": "SSH to a node",
        "description": "Run a shell on a node through Teleport. Port forwarding options are left out.",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/tsh.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "target",
            "label": "user@hostname",
            "type": "string",
            "position": 0,
            "sources": [
              "fig"
            ]
          },
          {
            "id": "login",
            "label": "Login name",
            "type": "string",
            "option": [
              "-l"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "port",
            "label": "Port",
            "type": "integer",
            "option": [
              "-p"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "agent",
            "label": "Forward auth agent",
            "type": "boolean",
            "option": [
              "-A"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "identity",
            "label": "Identity file",
            "type": "path",
            "option": [
              "-i"
            ],
            "path": {
              "kind": "file",
              "role": "input",
              "must_exist": true
            },
            "sources": [
              "fig"
            ]
          },
          {
            "id": "no_tty",
            "label": "Disable pseudo-tty",
            "type": "boolean",
            "option": [
              "-T"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "quiet",
            "label": "Quiet",
            "type": "boolean",
            "option": [
              "-q"
            ],
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "ssh",
            "label": "Connect",
            "fields": [
              "target"
            ],
            "required": [
              "target"
            ]
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "target",
              "login",
              "port",
              "agent",
              "identity",
              "no_tty",
              "quiet"
            ]
          }
        ]
      }
    ]
  }
}
