English | 简体中文
PikPakCli is a command line tool for Pikpak Cloud.
To build the tool from the source code, ensure you have Go installed on your system.
Clone the project:
git clone https://github.com/52funny/pikpakcliBuild the project:
go buildRun the tool:
./pikpakcli
You can also run pikpakcli using Docker.
Pull the Docker image:
docker pull 52funny/pikpakcli:masterRun the tool:
docker run --rm 52funny/pikpakcli:master --helpDownload the executable file you need from the Releases page, then run it.
First, configure the config_example.yml file in the project, entering your account details.
If your account uses a phone number, it must be preceded by the country code, like +861xxxxxxxxxx.
Then, rename it to config.yml.
The configuration file will first be read from the current directory (config.yml). If it doesn't exist there, it will be read from the user's default configuration directory. The default root directories for each platform are:
- Linux:
$HOME/.config/pikpakcli - Darwin:
$HOME/Library/Application Support/pikpakcli - Windows:
%AppData%/pikpakcli
For Docker Users: You need to mount the configuration file into the Docker container. For example, if your
config.ymlis located at/path/to/your/config.yml, you can run the Docker container like this:
docker run -v /path/to/your/config.yml:/root/.config/pikpakcli/config.yml pikpakcli:latest ls
# if your config.yml is in the project directory, you can just run:
docker run -v $PWD/config.yml:/root/.config/pikpakcli/config.yml pikpakcli:latest lsAfter that you can run the ls command to see the files stored on PikPak.
./pikpakcli lsSee Command for more commands information.
