Filerobot CLI
The Filerobot CLI (Command Line Interface) enables you to interact with Filerobot through the command line. For example, you can perform Admin and Upload API operations by typing commands into a terminal. This saves you time as you do not need to set up a development environment. You can also build scripts with multiple CLI commands to implement more complex processes and workflows.
CLI scripts should only be used in backed application to avoid exposing the API Secret key in a client-side application.
Examples
Upload a local file:
filerobot upload purple_dress.jpg --folder=/fashion-products
List assets in a folder:
filerobot list /fashion-products
Installation
macOS
sudo curl -L "https://github.com/scaleflex/filerobot-cli/releases/download/1.1/filerobot-cli-darwin-x86_64" -o /usr/local/bin/filerobot && sudo chmod +x /usr/local/bin/filerobot
Linux
sudo curl -L "https://github.com/scaleflex/filerobot-cli/releases/download/1.1/filerobot-cli-linux-x86_64" -o /usr/local/bin/filerobot && sudo chmod +x /usr/local/bin/filerobot
Verify successful installation
filerobot version
Show initial configuration
filerobot config -t {token} -k {api_secret_key}
Commands
The full list of commands is available on our Github page.
Was this page helpful?