New Tiers availableMore feature, Up to 10 Million AI-Tokens for free

Read blog post

File work should fit your automation.

Run uploads, synchronization and file management from the terminal. The Fairu CLI fits into scripts and CI/CD workflows so recurring steps can be repeated consistently.

Command Line Interface

Powerful Commands for Every Workflow

01 / 06

Bulk Uploads

Upload single files or entire directories with a single command. Supports glob patterns and recursive uploads.

02 / 06

Two-Way Sync

Keep local folders in sync with Fairu. Changes are detected and uploaded automatically.

03 / 06

Folder Management

Organize uploads into folders. Create folder structures that mirror your local directory.

04 / 06

Project Configuration

Configure projects with .fairurc files. Set defaults for folders, transformations, and more.

05 / 06

Watch Mode

Watch directories for changes and upload new files automatically, making uploads part of your local workflow.

06 / 06

CI/CD Ready

Integrate Fairu into your CI/CD pipelines. Automate asset uploads and deployments with ease.

Quick Setup

Up and Running in Minutes

Get started with just a few commands. The CLI works with any Fairu account.

  1. 01 / 03

    Install globally via npm

    npm install -g @fairu/cli
  2. 02 / 03

    Login to your Fairu account

    fairu login
  3. 03 / 03

    Start uploading

    fairu upload ./images --folder my-assets
Commands

Common Commands

Everything you need to manage your assets from the terminal.

Terminal
# Upload files to Fairu
fairu upload ./assets --folder products

# Sync a local folder with Fairu
fairu sync ./media --folder media --watch

# List all files in a folder
fairu list --folder documents

# Download files from Fairu
fairu download --folder backups --output ./local

# Get file information
fairu info <file-id>
FAQ

Questions about the CLI

Automate your first file task.

Install @fairu/cli and test an upload before adding it to your automated workflow.