Installation instructions
NOTE: If updating from CLI beta, run the following command:
npm install -g filemail-cli@1.0.0
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 your@email.com
Available commands (run filemail -h to learn more)
Usage: filemail [options] [command]
CLI for sending files to Filemail.com.
Options:
-V, --version output the version number
-h, --help display help for command
Commands:
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:
{
"username": "my@login.com",
"password": "myS3cretP4ssword",
"from": "your@email.com"
}
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.