A Pixeldrain client
pd upload <path[:name]>...
upload command uploads files specified by the given
paths to Pixeldrain and shows a URL to download them.
path can have an optional
name. If a name is given, uploaded file will be renamed with it.
For example, this command reads
img.png and uploads it as
pd upload img.png:another.png
-, the uploading file is read from stdin. In this case, it's recommended to give a file name.
For example, this command reads data from stdin and uploads it as
pd upload -:output.log
If multiple files are given, an album consists of them will be created. By default, the album has a random name.
--album flag can specify the name.
For example, this command uploads two files and creates an album named
pd upload --album screenshots img1.png img2.png
Upload a directory
Since this application supports uploading a file from STDIN, you can upload a directory with
For example, this command uploads
tar zcf - ~/Documents | pd upload -:documents.tar.gz
Upload to your account
If you want to upload files to your account, give your API key with
--api-key flag or via
An API key can be obtained from https://pixeldrain.com/user/api_keys.
pd download <URL>...
download command downloads files from Pixeldrain and stores it in the current directory by default.
-o option is given with a directory path, the downloaded file is stored in the directory.
If the given URL refers an album which consists of multiple files, this command asks which file you want to download.
If you want to download all files without any interaction, use
If recipients are specified with
--recipient-file flags to upload command,
files will be encrypted before being uploaded by age.
Encrypted files will have extension
A recipient specified with
--recipient flag can be an age public key generated by
or an SSH public key ("ssh-ed25519 AAAA...", "ssh-rsa AAAA...").
A recipient file specified with
--recipient-file flag contains one or more recipients, one per line.
Empty line sand lines starting with "#" are ignored as comments.
If a downloading file has extension
.age and an identity file is specified with
--identity flag to download command,
the file will be decrypted.
An identity contains one or more secret keys ("AGE-SECRET-KEY-1..."), one per line, or an SSH key. Empty lines and lines starting with "#" are ignored as comments.
See age for the details of
If you're a Homebrew or Linuxbrew user, you can install this app by the following commands:
$ brew tap jkawamoto/pixeldrain $ brew install pixeldrain
To build the newest version, use go get command:
$ go get github.com/jkawamoto/go-pixeldrain
Otherwise, compiled binaries are also available in Github.
This software is released under the MIT License, see LICENSE.