Last updated: Oct-30-2024
On this page:
Overview
Learn how to install and configure the Cloudinary Node.js SDK in your Node.js environment.
Video tutorial
View the code
You can find the code from this tutorial in GitHub.Tutorial contents
This tutorial presents the following topics. Click a timestamp to jump to that part of the video.
The Cloudinary Node.js SDK
0:05 | The Cloudinary Node.js SDK provides image and video upload, transformation, optimization, and delivery capabilities that you can implement using code that integrates seamlessly with your existing Node.js application. |
Install the Node.js SDK
0:13 | To install the Node.js SDK, in a terminal run: |
Import Cloudinary into your project
0:29 | To import Cloudinary into your project use: |
Configure Cloudinary
0:51 | To configure the SDK for your product environment, you can include your cloud name, API key and API secret in the config , in addition to other configuration parameters, like this, using .env to keep your credentials safe: |
Note
You can find your credentials in the API Keys page of the Cloudinary Console Settings.Use the CLOUDINARY_URL environment variable
2:03 | Alternatively, you can set the CLOUDINARY_URL environment variable in your environment, which includes your cloud name, API key and API secret in one string. |
Keep learning
Related topics
- Watch more Dev Hints videos on the Cloudinary YouTube channel.
- Follow the Node.js SDK quick start to get up and running in five minutes.
- Find out how to upload files to Cloudinary using Node.js.
- Learn how to transform your images and videos using the Node.js SDK.
If you like this, you might also like...
Optimization Tips
Tips for delivering optimized imagesUpload Images in Node.js
Upload images to Cloudinary using the Node.js SDKNamed Transformations
Simplify & standardize complex delivery URLs
Check out the Cloudinary Academy for free self-paced Cloudinary courses on a variety of developer or DAM topics, or register for formal instructor-led courses, either virtual or on-site.
✖️