{
  "description": "Download from and upload to Baidu Netdisk. Run login inside the program first. Listing, sharing and config commands are left out.",
  "name": "BaiduPCS-Go",
  "subcommands": [
    {
      "name": "download",
      "description": "Download files or directories from the netdisk. Saves under the program's download/ directory unless a target is given.",
      "options": [
        {
          "names": [
            "--saveto"
          ],
          "description": "Save to directory",
          "args": {
            "name": "saveto",
            "isOptional": false,
            "template": "folders"
          }
        },
        {
          "names": [
            "--save"
          ],
          "description": "Save in current directory"
        },
        {
          "names": [
            "--ow"
          ],
          "description": "Overwrite existing files",
          "isDangerous": true
        },
        {
          "names": [
            "--test"
          ],
          "description": "Test download (save nothing)"
        },
        {
          "names": [
            "-p"
          ],
          "description": "Threads",
          "args": {
            "name": "threads",
            "isOptional": false
          }
        },
        {
          "names": [
            "--retry"
          ],
          "description": "Max retries",
          "args": {
            "name": "retry",
            "isOptional": false
          }
        },
        {
          "names": [
            "--nocheck"
          ],
          "description": "Skip verification"
        }
      ],
      "args": [
        {
          "name": "remote_paths",
          "isOptional": true,
          "isVariadic": true
        }
      ]
    },
    {
      "name": "upload",
      "description": "Upload one local file or directory to a netdisk directory.",
      "options": [
        {
          "names": [
            "--norapid"
          ],
          "description": "Skip rapid-upload check"
        }
      ],
      "args": [
        {
          "name": "local_path",
          "isOptional": true,
          "template": "filepaths"
        },
        {
          "name": "remote_dir",
          "isOptional": true
        }
      ]
    }
  ]
}
