Rate Limit defines the maximum number of requests you can make using Contentstack's API within a specific time frame.
This guide provides step-by-step instructions on how to configure and manage rate limits in the Contentstack Command Line Interface (CLI).
By following these instructions, you can effectively control the number of requests made to the Contentstack API within a specified timeframe, ensuring optimal performance and preventing any disruptions due to exceeding rate limits.
Warning: The CLI supports rate limit configuration only for the bulkLimit parameter, which is used in bulk publish commands to control requests.
The config:set:rate-limit command lets you set a Custom rate limit for your organization in the CLI.
csdx config:set:rate-limitWith these steps, you have successfully set a rate limit in the CLI.
To set a Custom rate limit, you can pass the --limit-name and --utilize flags along with the --org flag in the command as given below:
csdx config:set:rate-limit --org blt***********1b --utilize 60,80 --limit-name bulkLimitUsage
csdx config:set:rate-limitOptions
Examples
csdx config:set:rate-limit --org blt***********1b --defaultcsdx config:set:rate-limit --org blt***********1b --utilize 60 --limit-name bulkLimitThe config:get:rate-limit command fetches the rate limit that you have set in an organization in the CLI.
csdx config:get:rate-limitWith these steps, you have successfully retrieved the rate limit you have set in the CLI.
Usage
csdx config:get:rate-limitThe config:remove:rate-limit command lets you remove an existing rate limit configuration from the CLI.
csdx config:remove:rate-limitWith these steps, you have successfully removed the rate limit configuration of an organization.
Usage
csdx config:remove:rate-limitOptions
Examples
csdx config:remove:rate-limit --orgBy default, the rate limit is set to 1, letting you publish one asset or entry per second. To enable the bulk publish feature, you must configure the rate limit for your specific organization.
The config:set:rate-limit command lets you set the rate limit to utilize the bulk publish feature according to your plan.
Usage
csdx config:set:rate-limit --org blt***********1b --utilize 10 --limit-name bulkLimit