Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/knrt10/cloudinary-cli

Manage files of cloudinary.com using your command line.
https://github.com/knrt10/cloudinary-cli

Last synced: 3 months ago
JSON representation

Manage files of cloudinary.com using your command line.

Awesome Lists containing this project

README

        



Upload images to **cloudinary.com** using your command line.

# Preview

# Installation

**NPM**

`npm i --global cloudinary-cli-tool`

**Set env file**

`cloudTool env`

This will ask for your cloudinary configuration which you can get from [cloudinary console](https://cloudinary.com/console/)

# Usage

Run `cloudTool -h` to see commands you can use

**Output**

```
Usage: cloudTool [options] [command]

Options:

-h, --help output usage information

Commands:

env|e Set your env file
upload|u [options] Upload file(s)
list|s [options] Search files and list them
rename|r Remane your public_id
delete|d [options] Delete your file(s)
```

Run `cloudTool -h` to see particular commands usage

# How to upload

**Single File**
- `cloudTool u `

**Multiple files**
- `cloudTool u -a ...`

# How to fetch

**Help command**
- `cloudTool list -h`

You will get following output

```
Options:

-a, --all get all files
-s, --search Search file by publicID
-t, --type Search by type. can be or
-h, --help output usage information
```

To get **all files**
- `cloudTool list -a`

If you **know public_id** of file you can **get particular file**
- `cloudTool list -s public_id`

You can also fetch by **type of file**
- For images `cloudTool list -t image`
- For gif `cloudTool list -t gif`

# How to update fileName

`cloudTool r `

# Delete file

**Single File**
- `cloudTool d `

**Multiple files**
- `cloudTool d -a ...`