Img2Link CLI

The Img2Link Command Line Interface (CLI) is a powerful tool for automating your file transformation and hosting workflows directly from your terminal or CI/CD pipelines.

Installation

npm install -g @img2link/cli

Ensure you have Node.js 16+ installed on your system before beginning.

Quick Start

# Authenticate (optional for public uploads)img2link login# Upload and convert an imageimg2link upload ./my-photo.jpg --webp --compress

Commands

upload [path]

Upload a single file or an entire directory to the Img2Link cloud.

compress [file]

Apply lossless compression to local images before backup.

status

Check the current availability of the Img2Link global CDN.

clear-cache

Flush the local temporary workspace used for large batch processing.

Rate our service

Your feedback helps us improve for everyone.

4.6/5
3,100 Voted Users