{
  "name": "scp",
  "description": "Copies files or directories between hosts on a network",
  "options": [
    {
      "names": [
        "-3"
      ],
      "description": "Copies between two remote hosts are transferred through the local\nhost.  Without this option the data is copied directly between the\ntwo remote hosts.  Note that this option disables the progress\nmeter and selects batch mode for the second host, since scp cannot\nask for passwords or passphrases for both hosts"
    },
    {
      "names": [
        "-4"
      ],
      "description": "Forces scp to use IPv4 addresses only"
    },
    {
      "names": [
        "-6"
      ],
      "description": "Forces scp to use IPv6 addresses only"
    },
    {
      "names": [
        "-A"
      ],
      "description": "Allows forwarding of ssh-agent(1) to the remote system. The default is not to forward an authentication agent"
    },
    {
      "names": [
        "-B"
      ],
      "description": "Selects batch mode (prevents asking for passwords or passphrases)"
    },
    {
      "names": [
        "-C"
      ],
      "description": "Compression enable. Passes the -C flag to ssh(1) to enable compression"
    },
    {
      "names": [
        "-c"
      ],
      "description": "Selects the cipher to use for encrypting the data transfer. This option is directly passed to ssh(1)",
      "args": [
        {
          "name": "cipher",
          "description": "The selected cipher specification"
        }
      ]
    },
    {
      "names": [
        "-F"
      ],
      "description": "Specifies an alternative per-user configuration file for ssh. This option is directly passed to ssh(1)",
      "args": [
        {
          "name": "ssh_config",
          "description": "The selected ssh config"
        }
      ]
    },
    {
      "names": [
        "-i"
      ],
      "description": "Selects the file from which the identity (private key) for public key authentication is read. This option is directly passed to ssh(1)",
      "args": [
        {
          "name": "identity_file",
          "description": "Specified identity file"
        }
      ]
    },
    {
      "names": [
        "-J"
      ],
      "description": "Connect to the target host by first making an scp connection to the\njump host described by destination and then establishing a TCP\nforwarding to the ultimate destination from there.  Multiple jump\nhops may be specified separated by comma characters.  This is a\nshortcut to specify a ProxyJump configuration directive.  This\noption is directly passed to ssh(1)",
      "args": [
        {
          "name": "destination",
          "description": "Scp destination"
        }
      ]
    },
    {
      "names": [
        "-l"
      ],
      "description": "Limits the used bandwidth, specified in Kbit/s",
      "args": [
        {
          "name": "limit",
          "description": "Limit bandwidth in Kbit/s"
        }
      ]
    },
    {
      "names": [
        "-o"
      ],
      "description": "Can be used to pass options to ssh in the format used in\nssh_config(5).  This is useful for specifying options for which\nthere is no separate scp command-line flag.  For full details of\nthe options listed below, and their possible values, see\nssh_config(5)",
      "args": [
        {
          "name": "option",
          "suggestions": [
            "AddressFamily",
            "BatchMode",
            "BindAddress",
            "ChallengeResponseAuthentication",
            "CheckHostIP",
            "Cipher",
            "Ciphers",
            "ClearAllForwardings",
            "Compression",
            "CompressionLevel",
            "ConnectionAttempts",
            "ConnectTimeout",
            "ControlMaster",
            "ControlPath",
            "ControlPersist",
            "DynamicForward",
            "EscapeChar",
            "ExitOnForwardFailure",
            "ForwardAgent",
            "ForwardX11",
            "ForwardX11Timeout",
            "ForwardX11Trusted",
            "GatewayPorts",
            "GlobalKnownHostsFile",
            "GSSAPIAuthentication",
            "GSSAPIDelegateCredentials",
            "HashKnownHosts",
            "Host",
            "HostbasedAuthentication",
            "HostKeyAlgorithms",
            "HostKeyAlias",
            "HostName",
            "IdentityFile",
            "IdentitiesOnly",
            "IPQoS",
            "KbdInteractiveAuthentication",
            "KbdInteractiveDevices",
            "KexAlgorithms",
            "LocalCommand",
            "LocalForward",
            "LogLevel",
            "MACs",
            "NoHostAuthenticationForLocalhost",
            "NumberOfPasswordPrompts",
            "PasswordAuthentication",
            "PermitLocalCommand",
            "PKCS11Provider",
            "Port",
            "PreferredAuthentications",
            "Protocol",
            "ProxyCommand",
            "PubkeyAuthentication",
            "RekeyLimit",
            "RequestTTY",
            "RhostsRSAAuthentication",
            "RSAAuthentication",
            "SendEnv",
            "ServerAliveInterval",
            "ServerAliveCountMax",
            "StrictHostKeyChecking",
            "TCPKeepAlive",
            "Tunnel",
            "TunnelDevice",
            "UsePrivilegedPort",
            "User",
            "UserKnownHostsFile",
            "VerifyHostKeyDNS",
            "VisualHostKey",
            "XAuthLocation"
          ]
        }
      ]
    },
    {
      "names": [
        "-P"
      ],
      "description": "Specifies the port to connect to on the remote host.  Note that\nthis option is written with a capital ‘P’, because -p is already\nreserved for preserving the times and modes of the file",
      "args": [
        {
          "name": "port"
        }
      ]
    },
    {
      "names": [
        "-p"
      ],
      "description": "Preserves modification times, access times, and modes from the original file"
    },
    {
      "names": [
        "-q"
      ],
      "description": "Quiet mode: disables the progress meter as well as warning and diagnostic messages from ssh(1)"
    },
    {
      "names": [
        "-r"
      ],
      "description": "Recursively copy entire directories.  Note that scp follows symbolic links encountered in the tree traversal"
    },
    {
      "names": [
        "-S"
      ],
      "description": "Name of program to use for the encrypted connection.  The program must understand ssh(1) options",
      "args": [
        {
          "name": "program"
        }
      ]
    },
    {
      "names": [
        "-T"
      ],
      "description": "Disable strict filename checking.  By default when copying files\nfrom a remote host to a local directory scp checks that the\nreceived filenames match those requested on the command-line to\nprevent the remote end from sending unexpected or unwanted files.\nBecause of differences in how various operating systems and shells\ninterpret filename wildcards, these checks may cause wanted files\nto be rejected.  This option disables these checks at the expense\nof fully trusting that the server will not send unexpected\nfilenames"
    },
    {
      "names": [
        "-v"
      ],
      "description": "Verbose mode.  Causes scp and ssh(1) to print debugging messages about their progress. This is helpful in debugging connection, authentication, and configuration problems"
    }
  ],
  "args": [
    {
      "name": "sources",
      "description": "File or directory, local or remote ([user@]host:[path])",
      "isVariadic": true,
      "generators": [
        {
          "template": "history"
        }
      ]
    },
    {
      "name": "target",
      "description": "File or directory, local or remote ([user@]host:[path])",
      "generators": [
        {
          "template": "history"
        }
      ]
    }
  ]
}
