A command line client for pCloud
go install github.com/t-chov/pcloud-uploader@latest
NAME:
pcloud-uploader - A new cli application
USAGE:
pcloud-uploader [global options] command [command options] [arguments...]
VERSION:
0.0.1
COMMANDS:
ls, listfolder Receive data for a folder.
up, uploadfile Upload a file.
help, h Shows a list of commands or help for one command
GLOBAL OPTIONS:
--help, -h show help
--version, -v print the version
You have to register pCloud.
And set two environment variables
PCLOUD_USERNAME
: email address you have registered.PCLOUD_PASSWORD
: login password for pCloud.
$ export PCLOUD_USERNAME=john.smith@example.com
$ export PCLOUD_PASSWORD=IamJohnSmith
$ pcloud-uploader listfolder --help
NAME:
pcloud-uploader ls - Receive data for a folder.
USAGE:
pcloud-uploader ls [command options] <PATH>
OPTIONS:
--recursive, -r full directory tree will be returned (default: false)
--showdeleted deleted files and folders that can be undeleted will be displayed (default: false)
--nofiles only the folder (sub)structure will be returned (default: false)
--noshares only user's own folders and files will be displayed (default: false)
--help, -h show help
$ pcloud-uploader uploadfile --help
NAME:
pcloud-uploader up - Upload a file.
USAGE:
pcloud-uploader up [command options] <SOURCE_FILE> <DEST_PATH>
OPTIONS:
--help, -h show help