https://github.com/imagekit-developer/imagekit-cli
Imagekit cli tool for storage migration
https://github.com/imagekit-developer/imagekit-cli
Last synced: 3 months ago
JSON representation
Imagekit cli tool for storage migration
- Host: GitHub
- URL: https://github.com/imagekit-developer/imagekit-cli
- Owner: imagekit-developer
- License: mit
- Created: 2020-06-29T07:48:02.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-10-17T15:38:57.000Z (over 5 years ago)
- Last Synced: 2025-09-28T06:01:51.405Z (9 months ago)
- Size: 1.95 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# imagekit-cli
ImageKit.io cli tool for cloudinary storage migration.
## Install
```sh
pip install imagekit-cli
```
## Configuration
Declare following Environment Variables before running the tool.
#### Environment Variables:
* **CLOUDINARY_URL:** Cloudinary Authentication URL from [Cloudinary Console](https://cloudinary.com/console).
* **IMAGEKIT_ID:** Imagekit account ID from [Imagekit profile](https://imagekit.io/dashboard#profile)
* **IMAGEKIT_PUBLIC_KEY:** Imagekit public API key from [Imagekit dashboard](https://imagekit.io/dashboard#developers)
* **IMAGEKIT_PRIVATE_KEY:** Imagekit private API key from [Imagekit dashboard](https://imagekit.io/dashboard#developers)
> **Note**: Use ```export``` command to set the variables.
```sh
export CLOUDINARY_URL=""
export IMAGEKIT_ID=""
export IMAGEKIT_PUBLIC_KEY=""
export IMAGEKIT_PRIVATE_KEY=""
```
## Usage
```sh
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](https://support.cloudinary.com/hc/en-us/articles/360029234052-Enabling-Automatic-File-Backups-in-your-Cloudinary-Account)
* Contact [Imagekit support](mailto:support@imagekit.io) to add this bucket as Origin in Imagekit dashboard.