Linux & macOS CLI Auto Upload
Upload, back up, and manage FileLu files directly from your terminal.

Easily upload and back up files from your Linux or macOS terminal using the FileLu script. It supports automation, works on Raspberry Pi and IoT devices, and provides secure file transfers for command-line users.

Before installing, make sure your API key is enabled. You can find it in My Account under the API Key section.


Requirements

Required packages: curl, tar, and jq.

For Debian/Ubuntu:
sudo apt-get update
sudo apt-get install jq curl tar

For CentOS/RHEL:
sudo yum install jq curl tar

For Fedora:
sudo dnf install jq curl tar

For Raspberry Pi:
sudo apt install jq curl tar

For openSUSE:
sudo zypper install jq curl tar

For macOS:
brew install jq curl tar
For macOS, install Homebrew first if needed: https://brew.sh/
Install FileLu CLI Auto Upload
Linux Install Command
curl -o filelu.tar https://filelu.com/tools/filelu.tar
sudo tar -xvf filelu.tar
cd filelu
chmod +x install_filelu.sh
./install_filelu.sh
macOS Install Command
curl -o filelu_mac.tar https://filelu.com/tools/filelu_mac.tar
sudo tar -xvf filelu_mac.tar
mv filelu_mac /Applications/filelu_mac
cd /Applications/filelu_mac
chmod +x install_filelu.sh
./install_filelu.sh
Setup Prompts
Enter your API key
Get your API key from My Account.
Enter your API key:
Enter the remote folder name on FileLu
If you do not see a folder, create one in My Files.
Available Folders - fld_id:
Sample_folder - xxxxxx
Sample_folder_2 - xxxxxxxx

Enter the remote target folder name:
Enter the local folder path
Multiple folder upload is supported.
/path/to/backup
Successful Linux Installation Example
filelu.service - FileLu Upload Script Service
Loaded: loaded (/etc/systemd/system/filelu.service; enabled; vendor preset: >
Active: active (running) since Wed 2023-10-04 21:28:38 EDT; 3h 28min ago
Main PID: 1144589 (filelu.sh)
Memory: 1.9M

Press Enter to continue or Ctrl+C to exit.
Apply Changes
Linux
source ~/.bashrc
macOS
source ~/.zshrc

Done. You can now auto-upload and back up files from your Linux or macOS computer to your FileLu account.


Usage / Help
You can run:
filelu <command>
filelu.sh <command>

Examples:
filelu help
filelu ls files
filelu upload -f /path/to/file
Command Description Example
help Show the help menu. filelu help
ls files List uploaded files. filelu ls files
ls folders List all folders. filelu ls folders
ls deleted List deleted files. filelu ls deleted
upload -f Upload a single file. filelu upload -f /home/user/file.txt
upload -dir Add a folder path to folder_paths.txt for monitoring and uploads. filelu upload -dir /home/upload
upload -url Upload from a remote URL. filelu upload -url http://example.com/file.zip
rm Remove a file by file code. filelu rm abc123
rm -dir Remove a folder path from folder_paths.txt. filelu rm -dir /home/user/folder
mk dir Create a new folder on the remote server. filelu mk dir "Folder Name"
restore Restore a file by file code. filelu restore abc123
clone Clone a file by file code. filelu clone abc123
download Download a file to a local directory. filelu download abc123 -to /home/user/downloads
set Set a file’s folder using file code and folder ID. filelu set abc123,567
onlyme Toggle sharing, where 0 = public and 1 = private. filelu onlyme abc123,1
update Check and apply updates. filelu update

Trusted by 146,000+ users worldwide.

FileLu delivers secure, scalable cloud storage with powerful upload tools, cross-platform access, and privacy-first encryption — all without hidden fees.

Get Started Free

Upload & Sync Tools

Upload via Web, FTP, WebDAV, Rclone, Rsync, API, mobile apps, browser extensions, and more.

Secure File Sharing

Share files via links, email, or teams with password protection and flexible access controls.

Privacy & Encryption

SSL-secured transfers and optional Secure-Solo-Cipher Encryption ensure only you control your data.

Flexible Storage

From free plans to 1PB scalable storage. Easily upgrade and share space with teams or family.