Command line tools

restdb-cli

Integrate restdb.io into your workflow with this command line tool. Upload or download directories of static resources to be hosted from your database.

Install:

$ npm install restdb-cli -g

Usage:

$ restdb-cli --cmd <command> [<arguments> ...]

Commands:

upload

Copy all files and folders from a local directory to restdb.io database static file area

argumentdescription
--apikeyFull access api-key
--databaseDatabase name
--srcFolder to deploy (recursive)
--destDestination folder (default is '.')

Example:

$ restdb-cli --cmd upload --src ./dist --dest /myapp --database mydatabase-ffe0 --apikey 234r23479x73098n2453987d324

Files will be served under https://mydatabase-ffe0.restdb.io/static/myapp or https://mydatabase-ffe0.restdb.io/static if --dest is '.' or not given.

clean

Remove all static files and folders from database

argumentdescription
--apikeyFull access api-key
--databaseDatabase name

download

Download static files for a database to a local folder

argumentdescription
--apikeyFull access api-key
--databaseDatabase name