Command Line Interface
This CLI for Convertio allows easy and fast conversions of files using the terminal. For more information and the source code have a look at the repository on GitHub.

Installation

PHP have to be installed
Installation
$ wget --no-check-certificate -O '/usr/local/bin/convertio' https://api.convertio.co/convertio
$ chmod +x /usr/local/bin/convertio

Usage


Set your CloudConvert API Key as enviroment variable
$ export CONVERTIO_API_KEY=_YOUR_API_KEY_
To convert input.pdf to jpg:
$ convertio -f jpg input.pdf
Batch converting is supported:
$ convertio -f pdf *.txt
1.txt: Done! [32999 Bytes] => ./1.txt.pdf
2.txt: Done! [32999 Bytes] => ./2.txt.pdf

All Done!