Was this article helpful?
Thanks for your feedback
The config namespace contains all the commands that you will need to configure the CLI as per your requirements.
Contentstack currently supports three regions: North America, Europe, and Azure North America.
By default, the CLI uses the North America region. Configuration changes are not required for North America region users.
Using the following set of commands, you can configure the CLI to use other regions.
The config:get:region command will return the name of the region on which you are performing actions in Contentstack, via the CLI.
Usage
csdx config:get:region
The config:set:region command lets you select a region, from the available Contentstack regions, to perform actions using the CLI.
Usage
csdx config:set:region <<region>>
Arguments
Example
csdx config:set:region EU
csdx config:set:region AZURE-NA
By using the config:set:region command, you can also set a custom host for Content Delivery and Content Management APIs, and set a custom region name for the hosts.
Usage
csdx config:set:region --cda <<custom_cda_host_url>> --cma <<custom_cma_host_url>> -n <<custom_region_name>>
Options
Example
csdx config:set:region --cda "https://in-cda.contentstack.com" --cma "https://in-api.contentstack.com" -n "India"
Was this article helpful?
Thanks for your feedback