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:
Copy all files and folders from a local directory to restdb.io database static file area
argument | description |
---|---|
--apikey | Full access api-key |
--database | Database name |
--src | Folder to deploy (recursive) |
--dest | Destination 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.
Remove all static files and folders from database
argument | description |
---|---|
--apikey | Full access api-key |
--database | Database name |
Download static files for a database to a local folder
argument | description |
---|---|
--apikey | Full access api-key |
--database | Database name |