Skip to content

Latest commit

 

History

History
190 lines (125 loc) · 3.45 KB

File metadata and controls

190 lines (125 loc) · 3.45 KB

Command Usage

For docker users, please refer to the Docker Command Usage.

Upload

  • Uploads all files in the local directory to the Movies folder.

    pikpakcli upload -p Movies .
  • Upload files in local directory except for mp3, jpg to Movies folder.

    pikpakcli upload  -e .mp3,.jpg -p Movies .
  • Select the number of concurrent tasks for the upload (default is 16).

    pikpakcli -c 20 -p Movies .
  • Use the -P flag to set the id of the folder on the Pikpak cloud.

    pikpakcli upload -P AgmoDVmJPYbHn8ito1 .

Download

  • Download the target pointed to by -p. If it is a directory, download it recursively; if it is a file, download that file.

    pikpakcli download -p Movies
    pikpakcli download -p Movies/Peppa_Pig.mp4
  • Use -p as the base remote path, then append the following argument to it. The CLI will decide whether the target is a file or a directory.

    pikpakcli download -p Movies Peppa_Pig.mp4
    pikpakcli download -p Movies Cartoons
    pikpakcli download -p Movies Kids/Peppa_Pig.mp4
  • Use an absolute remote path in the argument to override -p.

    pikpakcli download -p Movies /TV/Peppa_Pig.mp4
  • Limit the number of files that can be downloaded at the same time (default: 1).

    pikpakcli download -c 5 -p Movies
  • Specify the output directory of downloaded files.

    pikpakcli download -p Movies -o Film
  • Use the -g flag to display status information during the download process.

    pikpakcli download -p Movies -o Film -g

Share

  • Share links to all files under Movies.

    pikpakcli share -p Movies
  • Share the link to the specified file.

    pikpakcli share Movies/Peppa_Pig.mp4
  • Share link output to a specified file.

    pikpakcli share  --out sha.txt -p Movies

New

New Folder

  • Create a new folder NewFolder under Movies

    pikpakcli new folder -p Movies NewFolder

New Sha File

  • Create a new Sha file under Movies.

    pikpakcli new sha -p /Movies 'PikPak://美国队长.mkv|22809693754|75BFE33237A0C06C725587F87981C567E4E478C3'

New Magnet File

  • Create new magnet file.

    pikpakcli new url 'magnet:?xt=urn:btih:e9c98e3ed488611abc169a81d8a21487fd1d0732'

Quota

  • Get space on your PikPak cloud drive.

    pikpakcli quota -H

Ls

  • Get information about all files in the root directory.

    pikpakcli ls -lH -p /

Delete

  • Delete a file by full path from the PikPak cloud.

    pikpakcli delete /Movies/Peppa_Pig.mp4
  • Delete entries from a specific directory using the -p flag.

    pikpakcli delete -p /Movies Peppa_Pig.mp4
  • Delete multiple entries under the same path.

    pikpakcli delete -p /Movies File1.mp4 File2.mp4

Rename

  • Rename a file or folder by full path.

    pikpakcli rename /Movies/Peppa_Pig.mp4 Peppa_Pig_S01E01.mp4
  • Rename a folder.

    pikpakcli rename /Movies/Cartoons Kids

Shell

  • Start the interactive shell.

    pikpakcli shell
  • Change directory and list files in the current path.

    pikpakcli shell
    cd "/Movies/Kids Cartoons"
    ls
  • Open a remote file from the shell with a local application.

    pikpakcli shell
    cd "/Movies"
    open Peppa_Pig.mp4