/fp

Filepicker CLI upload tool

Primary LanguageGo

About

Filepicker CLI upload tool enables you to easily upload your files and get uniqe url (FileLink) for each on of them. Url is also automatically copied to your clipboard so you can start using it immediately.

Installation

From binary

Just download one of the binaries:

Darwin x86_64

Linux x86_64

and put it in your $PATH

From sources

go get github.com/atotto/clipboard
go get github.com/briandowns/spinner
go get code.google.com/p/gcfg
go build

Configuration

You have to put your Filepicker API Key either using environment variable:

export FILEPICKER_APIKEY=YOUR_API_KEY_HERE

or by using config file ~/.fp

[Filepicker]
apikey = YOUR_API_KEY_HERE

Usage

Single file upload

fp /path/to/your/file

alt tag

Directory upload (recursive)

fp -d /path/to/your/directory

alt tag