cli-config-abhnv
v1.4.10
Published
Contentstack CLI plugin for configuration
Downloads
2
Maintainers
Readme
@contentstack/cli-config
The config namespace contains all the commands that you will need to configure the CLI as per your requirements. Contentstack currently supports four regions: North America, Europe, Azure North America and Azure Europe. Configure the CLI documentation
Usage
$ npm install -g cli-config-abhnv
$ csdx COMMAND
running command...
$ csdx (--version)
cli-config-abhnv/1.4.10 linux-x64 node-v18.17.1
$ csdx --help [COMMAND]
USAGE
$ csdx COMMAND
...
Commands
csdx config:get:base-branch
csdx config:get:region
csdx config:remove:base-branch
csdx config:set:base-branch
csdx config:set:region [REGION]
csdx config:get:base-branch
Get current branch set for CLI
USAGE
$ csdx config:get:base-branch
DESCRIPTION
Get current branch set for CLI
EXAMPLES
$ csdx config:get:base-branch
See code: src/commands/config/get/base-branch.ts
csdx config:get:region
Get current region set for CLI
USAGE
$ csdx config:get:region
DESCRIPTION
Get current region set for CLI
EXAMPLES
$ csdx config:get:region
See code: src/commands/config/get/region.ts
csdx config:remove:base-branch
Remove branch config for CLI
USAGE
$ csdx config:remove:base-branch [-k <value>] [-y]
FLAGS
-k, --stack-api-key=<value> Stack API Key
-y, --yes Force Remove
DESCRIPTION
Remove branch config for CLI
EXAMPLES
$ csdx config:remove:base-branch
$ csdx config:remove:base-branch --stack-api-key <value>
See code: src/commands/config/remove/base-branch.ts
csdx config:set:base-branch
Set branch for CLI
USAGE
$ csdx config:set:base-branch [-k <value>] [--base-branch <value>]
FLAGS
-k, --stack-api-key=<value> Stack API Key
--base-branch=<value> Base Branch
DESCRIPTION
Set branch for CLI
EXAMPLES
$ csdx config:set:base-branch
$ csdx config:set:base-branch --stack-api-key <value> --base-branch <value>
See code: src/commands/config/set/base-branch.ts
csdx config:set:region [REGION]
Set region for CLI
USAGE
$ csdx config:set:region [REGION] [-d <value> -m <value> --ui-host <value> -n <value>]
ARGUMENTS
REGION Name for the region
FLAGS
-d, --cda=<value> Custom host to set for content delivery API, if this flag is added then cma, ui-host and name
flags are required
-m, --cma=<value> Custom host to set for content management API, , if this flag is added then cda, ui-host and name
flags are required
-n, --name=<value> Name for the region, if this flag is added then cda, cma and ui-host flags are required
--ui-host=<value> Custom UI host to set for CLI, if this flag is added then cda, cma and name flags are required
DESCRIPTION
Set region for CLI
EXAMPLES
$ csdx config:set:region
$ csdx config:set:region NA
$ csdx config:set:region EU
$ csdx config:set:region AZURE-NA
$ csdx config:set:region AZURE-EU
$ csdx config:set:region --cma <contentstack_cma_endpoint> --cda <contentstack_cda_endpoint> --ui-host <contentstack_ui_host_endpoint> --name "India"
See code: src/commands/config/set/region.ts