testsha-config
v1.0.4
Published
Contentstack CLI plugin for configuration
Downloads
3
Readme
testsha-config
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. Configure the CLI documentation
Usage
$ npm install -g testsha-config
$ csdx COMMAND
running command...
$ csdx (-v|--version|version)
testsha-config/1.0.4 linux-x64 node-v16.18.1
$ csdx --help [COMMAND]
USAGE
$ csdx COMMAND
...
Commands
csdx config:get:region
Get current region set for CLI
USAGE
$ csdx config:get:region
EXAMPLE
$ csdx config:get:region
See code: src/commands/config/get/region.ts
csdx config:set:region [REGION]
Set region for CLI
USAGE
$ csdx config:set:region [REGION]
OPTIONS
-d, --cda=cda Custom host to set for content delivery API, if this flag is added then cma and name flags are
required
-m, --cma=cma Custom host to set for content management API, , if this flag is added then cda and name flags are
required
-n, --name=name Name for the region, if this flag is added then cda and cma flags are required
EXAMPLES
$ csdx config:set:region
$ csdx config:set:region NA
$ csdx config:set:region NA
$ csdx config:set:region --cma <contentstack_cma_endpoint> --cda <contentstack_cda_endpoint> --name "India"
See code: src/commands/config/set/region.ts