Skip to content

AlpixTM/transfersh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

75 Commits
 
 
 
 
 
 
 
 

Repository files navigation

transfersh

unofficial command-line client for https://github.com/dutchcoders/transfer.sh (https://transfer.sh)

Documentation

Usage

Upload file

    >transfersh file.txt
    File file.txt saved at: https://transfer.sh/XXXXX/file.txt

Upload file with progress bar

    >transfersh -p file.txt
    Upload: [#####################################-----------] 75.68%
    File file.txt saved at: https://transfer.sh/XXXXX/file.txt

Upload file && change the name

    >transfersh -n newname.txt file.txt
    File file.txt saved at: https://transfer.sh/XXXXX/newname.txt

Upload to your transfersh server instead of https://transfer.sh

    >transfersh -sn upload.server.name filename
    File saved at: https://upload.server.name/XXXXX/filename

Upload all files in directory recursively

    >transfersh  -r /xx/xy/
    File /xx/xy/TEST.txt saved at: https://transfer.sh/XXXXX/TEST.txt
    File /xx/xy/yy/testtest.txt saved at: https://transfer.sh/XXXXX/testtest.txt

Upload all files in current directory recursively && change the name

    >transfersh  -r ./ -n test.txt
    File ./TEST.txt saved at: https://transfer.sh/XXXXX/test.txt
    File ./testtest.txt saved at: https://transfer.sh/XXXXX/test.txt

Upload all files as gzip compressed tar

    >transfersh -rtg ./ -n myupload-as-tar-gz.tar.gz
    File saved at: https://transfer.sh/XXXXX/myupload-as-tar-gz.tar.gz

Upload all files as uncompressed tar

    >transfersh -rt ./ -n myupload-as-tar.tar
    File saved at: https://transfer.sh/XXXXX/myupload-as-tar.tar

Upload all files as zip

    >transfersh -rz ./ -n myupload-as-zip.zip
    File saved at: https://transfer.sh/XXXXX/myupload-as-zip.zip

Save all URLs in textfile

    >transfersh -r ./ -s URLS.txt
    File ./TEST.txt saved at: https://transfer.sh/XXXXX/test.txt
    File ./testtest.txt saved at: https://transfer.sh/XXXXX/test.txt

Save all URLs in textfile and upload it

    >transfersh -r ./ -s URLS.txt
    File ./TEST.txt saved at: https://transfer.sh/XXXXX/test.txt
    File ./testtest.txt saved at: https://transfer.sh/XXXXX/test.txt
    File /tmp/transfersh-savefile.txt saved at: https://transfer.sh/XXXXX/transfersh-savefile.txt

Check file for virus with Virustotal

    >transfersh -vt filename
    Virustotal Report is available here: https://www.virustotal.com/file/....

Install

Debian / Ubuntu
    (Out of date at the moment!)
    1. echo "deb [trusted=yes] http://mirror.alpix.eu/ debianpkg/" >> /etc/apt/sources.list
    2. apt-get update && apt-get upgrade
    3. apt-get install transfersh -y

Arch-based systems

    If you can access the AUR with your package manager (https://aur.archlinux.org/):
        e.g. yaourt as package manager:  
            1.  yaourt -S transfersh
    If not do it manually
        1. curl -L -O https://aur.archlinux.org/cgit/aur.git/snapshot/transfersh.tar.gz
        2. tar xf transfersh.tar.gz
        3. cd transfersh && makepkg -si
    *Last step: Vote on aur if the package is useful for you. <3*

Manual install

    1. Download lates release of transfersh
    2. Untar/unzip it
    3. Place the transfersh file in /usr/bin/
    4. Set the right user rights with chmod
    5. Make sure you have installed python
    6. Install the requirements
        6.1 sudo pip install requests
        6.2 Olny needed for progress bar:
            sudo pip install requests_toolbelt 

Progess bar

If you want to use the progress bar (-p), you need to install requests_toolbelt!

    sudo pip install requests_toolbelt

PLEASE FEEL FREE TO CONTRIBUTE!

Just create a Pull request...