Example Node.js script used in the Cloudinary docs.
This GitHub repo was created from Replit: https://replit.com/@CarolineLevison/Cloudinary-Nodejs-Quickstart.
To run the script outside of the Replit environment:
- Clone this repo.
- Open a terminal in the
cld_node_quickstartfolder. - Set your Cloudinary API Environment variable:
You can find your API Environment variable in the Account Details section of your Cloudinary console.
export CLOUDINARY_URL=cloudinary://<api_key>:<api_secret>@<cloud_name> - Install Cloudinary:
npm install cloudinary - Run the script:
node index.js