{
  "id": "sftp",
  "name": "sftp",
  "description": "OpenSSH secure file transfer.",
  "executables": [
    "sftp"
  ],
  "commands": {
    "format": 1,
    "label": "Open SFTP session",
    "description": "Connect to a host for interactive file transfer. Batch files and options passed through to ssh are included; the scp-style source/target form is left out.",
    "quality": "ai-draft",
    "base": "fig:sftp",
    "parser": {
      "end_of_options": "--",
      "interleave": "permute",
      "long_equals": false,
      "short_attached": true,
      "short_bundles": false
    },
    "source": [
      {
        "id": "fig",
        "kind": "completion",
        "url": "https://github.com/withfig/autocomplete/blob/master/src/sftp.ts",
        "license": "MIT"
      }
    ],
    "field": [
      {
        "id": "destination",
        "label": "Destination",
        "description": "[user@]host[:path]",
        "type": "string",
        "position": 0,
        "sources": [
          "fig"
        ]
      },
      {
        "id": "port",
        "label": "Port",
        "type": "integer",
        "option": [
          "-P"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "identity",
        "label": "Identity file",
        "type": "path",
        "option": [
          "-i"
        ],
        "path": {
          "kind": "file",
          "role": "input",
          "must_exist": true
        },
        "sources": [
          "fig"
        ]
      },
      {
        "id": "batch",
        "label": "Batch file",
        "type": "path",
        "option": [
          "-b"
        ],
        "path": {
          "kind": "file",
          "role": "input",
          "must_exist": true
        },
        "sources": [
          "fig"
        ]
      },
      {
        "id": "jump",
        "label": "Jump host",
        "type": "string",
        "option": [
          "-J"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "ssh_config",
        "label": "SSH config file",
        "type": "path",
        "option": [
          "-F"
        ],
        "path": {
          "kind": "file",
          "role": "input",
          "must_exist": true
        },
        "sources": [
          "fig"
        ]
      },
      {
        "id": "compression",
        "label": "Compression",
        "type": "boolean",
        "option": [
          "-C"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "recursive",
        "label": "Recursive",
        "type": "boolean",
        "option": [
          "-r"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "preserve",
        "label": "Preserve times and modes",
        "type": "boolean",
        "option": [
          "-p"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "quiet",
        "label": "Quiet",
        "type": "boolean",
        "option": [
          "-q"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "verbose",
        "label": "Verbose",
        "type": "boolean",
        "option": [
          "-v"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "ipv4",
        "label": "IPv4 only",
        "type": "boolean",
        "option": [
          "-4"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "ipv6",
        "label": "IPv6 only",
        "type": "boolean",
        "option": [
          "-6"
        ],
        "sources": [
          "fig"
        ]
      }
    ],
    "task": [
      {
        "id": "connect",
        "label": "Connect to host",
        "fields": [
          "destination",
          "port",
          "identity"
        ],
        "required": [
          "destination"
        ]
      },
      {
        "id": "batch-run",
        "label": "Run a batch file",
        "fields": [
          "destination",
          "batch",
          "identity"
        ],
        "required": [
          "destination",
          "batch"
        ]
      }
    ],
    "group": [
      {
        "id": "basic",
        "label": "Basic",
        "fields": [
          "destination",
          "port",
          "identity",
          "batch"
        ]
      },
      {
        "id": "advanced",
        "label": "Advanced",
        "fields": [
          "jump",
          "ssh_config",
          "compression",
          "recursive",
          "preserve",
          "quiet",
          "verbose",
          "ipv4",
          "ipv6"
        ]
      }
    ]
  }
}
