https://github.com/pcon/cloudinary-cli
A command-line interface into cloudinary
https://github.com/pcon/cloudinary-cli
Last synced: about 1 year ago
JSON representation
A command-line interface into cloudinary
- Host: GitHub
- URL: https://github.com/pcon/cloudinary-cli
- Owner: pcon
- Created: 2015-10-11T00:40:34.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2023-04-16T19:27:19.000Z (about 3 years ago)
- Last Synced: 2025-03-03T20:18:23.816Z (about 1 year ago)
- Language: JavaScript
- Size: 79.1 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Command-line Interface for Cloudinary
Not being able to find an easy way to upload files to cloudinary from the command-line, I created this tool to do so.
# Installation
Install using npm
`npm -g install cloudinary-cli`
# Configuration
## Global config
By adding a `$HOME/.cloudinary` file in the following format, all commands will parse that file for it's configuration
```javascript
{
cloud_name: 'sample',
api_key: '874837483274837',
api_secret: 'a676b67565c6767a6767d6767f676fe1'
}
```
## Command config
The command line flags will override the global configuration file
```
-n, --cloud_name [cloud_name] Cloudinary cloud name
-k, --api_key [api_key] Cloudinary api key
-s, --api_secret [api_secret] Cloudinary api secret
```
# Usage
# Upload
To upload a single file simply run
`cloudinary upload foo.png`
To upload multiple files, use a space seperated list
`cloudinary upload image1.png image2.png image3.png`
## Options
You can use the following options when uploading
```
--folder, -f The folder
--usefilename Use the system filename
```