NOTE: If updating from CLI beta, run the following command:
npm install -g email@example.com
Execute "filemail -V" to ensure the upgrade succeeded.
Install NodeJS v16 (nodejs v14 is NOT supported)
For Windows and MacOS the installer is here: https://nodejs.org/en/download/
For Linux distros, using built-in package managers, the instructions are here: https://nodejs.org/en/download/package-manager/#debian-and-ubuntu-based-linux-distributions
Install Filemail CLI using NPM with following command
npm install -g filemail-cli
Test upload of a file with the CLI:
filemail upload testFile.txt -u firstname.lastname@example.org
Available commands (run filemail -h to learn more)
Usage: filemail [options] [command]
CLI for sending files to Filemail.com.
-V, --version output the version number
-h, --help display help for command
login [options] <username> Login to Filemail API and get login token.
logout <logintoken> Logout from Filemail API and destroy login token.
upload [options] <files...> Upload files to Filemail.com.
help [command] display help for command
Store password and settings in a json file for safety and convenience
You can create a json config file to store your password and other settings. Thanks to this you won't need to pass them as arguments. An example json file containing username, password and from parameter value settings:
You can then use it with CLI passing it with
--config-file option. For example:
filemail upload testFile.txt --config-file "c:\filemail-config.json"
All supported upload options (run filemail upload -h to learn more)
The application will exit with code 0 if transfer was successful, otherwise it failed and you might want to check parameters and retry.