Easy and fast file sharing from the command-line brought to Composer community. Based on https://transfer.sh
Shell
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
tests
.gitignore
.travis.yml
LICENSE
README.md
composer.json
transfer

README.md

composer-transfer

Latest Version on Packagist Total Downloads Build Status Software License

Easy and fast file sharing from the command-line brought to Composer community. Based on https://transfer.sh

Features:

  • Made for use with shell
  • Share files with an URL
  • Upload up to 10 GB
  • Files stored for 14 days
  • Encrypt your files
  • Preview your files in the browser
  • For free

Installation

Install package globally:

$ composer global require tamtamchik/composer-transfer

Note! Make sure to place the ~/.composer/vendor/bin directory (or the equivalent directory for your OS) in your PATH so the transfer executable can be located by your system. Simply add this directory to your PATH in your ~/.bashrc (or ~/.bash_profile) like this:

$ echo "export PATH=~/.composer/vendor/bin:$PATH" >> ~/.bashrc
$ source ~/.bashrc

Usage

Now uploading your file to the web is as easy as running transfer command:

$ transfer file.txt
######################################################################## 100.0%
https://transfer.sh/XXXXX/file.txt

Or using it with a pipe (real life example):

$ cat /var/log/nginx/access.log | cut -d ' ' -f 1 | logtop | transfer access-statistics.txt
######################################################################## 100.0%
https://transfer.sh/XXXXX/access-statistics.txt

Or for folders (require zip on server):

$ transfer /tmp/some-folder
######################################################################## 100.0%
https://transfer.sh/XXXXX/some-folder.zip

Creators

Original service:
Composer package:

TODO

Copyright and license

Original https://transfer.sh code and documentation copyright 2011-2016 Remco Verhoef.

Code released under the MIT license.