Configure the Node.js SDK (video tutorial)
Last updated: Sep-12-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
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
To install the Node.js SDK, in a terminal run: | |
Import Cloudinary into your project
To import Cloudinary into your project use: | |
Configure Cloudinary
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
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...
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.
✖️