Git Product home page Git Product logo

upclient's Introduction

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

upclient's People

Contributors

gangelop avatar jei avatar k3d3 avatar ultramancool avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.