Tired of having to open a web browser to upload some files and make them available to people on the Web? Don’t want to remember a complicated API to do it on the command line? chunk.io is designed to be the simplest way to upload a file from the command line.

Why ?

Every web site that allows you to upload files either requires you to open a web browser, and/or provides an API that’s just too complicated to be usable from the command-line. chunk.io solves this, and more:

Upload any kind of file, not just text files, up to 200MB.

Do it with your command-line tool of choice; that may not look like much at first, but this is much more convenient when you’re spending your time in a terminal. No context-switching, and faster. Plus you get all the benefits of UNIX pipes.

Syntax highlight uploaded source files by appending a Pygments lexer extension to the file URI. Reference a specific line when you share it with others.

And, your files are securely stored on Amazon S3.

Command-line usage

Transfer a single file from your filesystem

Here is what you type in your command line:

$ curl -u user:pass -T path/to/file chunk.io

Here is what you receive (as a text/uri-list payload):

http://chunk.io/crohr/f1ec04b3586f415d9ae4cac7bbe64826

Simple heh? From now on we’ll no longer separate request and response, and the username & password will be stored in the local .netrc file, i.e. the previous example will be written as: