Skip to content
Command-line access to Up1
JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
LICENSE
README.md
package.json
sjcl.js
upclient.js

README.md

Up, the Up1 command-line client

Usage: up [options] [files]

Upload files and text to an Up1 based pastebin. If no argument is specified, stdin is assumed.

Options:
  -b, --binary                             force application/octet-stream (for downloadable file)
  -t, --text                               force text/plain (for pastebin)
  -f, --file <name>                        force file name for stdin based inputs
  -m, --mime <mime>                        force given mime type (default: detect)
  -s, --server <https://example.com:443>   specify Up1 server (default: https://up1.ca)
  -k, --apikey <key>                       specify server api key (default: c61540b5ceecd05092799f936e27755f)
  -d, --delurl                             print the deletion url
      --version                            display version information and exit
      --help                               display this help and exit

Usage examples

Paste command output to Up1:

ps aux | up

Copy an image file to Up1:

up image.png

Take a screenshot (using a selection rectangle), send it to Up1, and put the result link on the clipboard:

import png:- | up | xsel -b

Do the same as above, but also notify when complete:

import png:- | up | tee >(xsel -b) >(xargs notify-send "Upload Complete")

Environment Variables

Some options can also be configured via environment variables. Command line options take precedence over environment variables.

UP1_SERVER: equivalent to --server
UP1_APIKEY: equivalent to --apikey
UP1_DELURL: equivalent to --delurl when set to "1"

For example, the following in a bash shell:

export UP1_SERVER="https://example.com"
export UP1_DELURL=1
echo foo bar | up

is equivalent to:

echo foo bar | up -s "https://example.com" -d

Up1

For more information on Up1, view the README at https://github.com/Upload/Up1

You can’t perform that action at this time.