Upload local files or remote URLs to Cloudinary with automatic image compression support.
Check if the CLI binary exists at ./cloudinary-cli (project root). If not, run the install script:
bash .agents/skills/cloudinary-cli/scripts/install.sh
If Go is not installed, prompt the user to install Go first.
.env)Check if cmd/cli/.env exists and contains all required variables. If any are missing, prompt the user for the missing values and write them to cmd/cli/.env.
Required variables:
CLOUDINARY_CLOUD - Cloudinary cloud nameCLOUDINARY_KEY - API keyCLOUDINARY_SECRET - API secretOptional variables:
CLOUDINARY_DIRECTORY - Upload folder (default: root)CLOUDINARY_COMPRESS - Auto-compress images: true/false (default: true)Run the upload script with file paths:
bash .agents/skills/cloudinary-cli/scripts/upload.sh <file1> [file2] ...
Or run the CLI directly:
cd cmd/cli && ../../cloudinary-cli file1.jpg file2.png
The CLI automatically:
CLOUDINARY_COMPRESS=trueWhen CLOUDINARY_COMPRESS is true (default), images are uploaded with Cloudinary q_auto transformation for automatic quality optimization. Supported image formats: jpg, jpeg, png, gif, webp, bmp, tiff, svg, ico, heic, heif, avif.
To disable compression for a specific upload, temporarily set CLOUDINARY_COMPRESS=false in .env.
共 1 个版本