ImageKit.io cli tool for cloudinary storage migration.
pip install imagekit-cli
Declare following Environment Variables before running the tool.
- CLOUDINARY_URL: Cloudinary Authentication URL from Cloudinary Console.
- IMAGEKIT_ID: Imagekit account ID from Imagekit profile
- IMAGEKIT_PUBLIC_KEY: Imagekit public API key from Imagekit dashboard
- IMAGEKIT_PRIVATE_KEY: Imagekit private API key from Imagekit dashboard
Note: Use
export
command to set the variables.
export CLOUDINARY_URL=""
export IMAGEKIT_ID=""
export IMAGEKIT_PUBLIC_KEY=""
export IMAGEKIT_PRIVATE_KEY=""
imagekitcli
CLI Arguments:
usage: imagekitcli [-h] [-m] [-l] [-u] [-o OUTPUT] [-c] [-s]
optional arguments:
-h, --help Show this help message and exit
-m, --migrate Migrate Cloudinary storage to ImageKit
-l, --list Cloudinary URL list
-u, --usage Cloudinary usage
-o OUTPUT, --output OUTPUT
Output file path (used with --list)
-c, --clean Clean caches
-s, --status Check status
Note: Use Cloudinary Backup bucket to migrate if storage is more than 2GB or if you are on Cloudinary paid plan.
- Enable Cloudinary Backup Bucket Guide
- Contact Imagekit support to add this bucket as Origin in Imagekit dashboard.