1.2.8 • Published 1 year ago

testsha-cm-import v1.2.8

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

testsha-cm-import

It is Contentstack’s CLI plugin to import content in the stack. To learn how to export and import content in Contentstack, refer to the Migration guide.

License

For switching to EU region update the hosts at config/default.js

{
  host:'https://eu-api.contentstack.com/v3',
  cdn: 'https://eu-cdn.contentstack.com/v3',
 ...
}

For switching to AZURE-NA region update the hosts at config/default.js

{
  host:'https://azure-na-api.contentstack.com/v3',
  cdn: 'https://azure-na-cdn.contentstack.com/v3'
 ...
}

Usage

$ npm install -g testsha-cm-import
$ csdx COMMAND
running command...
$ csdx (-v|--version|version)
testsha-cm-import/1.2.8 linux-x64 node-v16.18.1
$ csdx --help [COMMAND]
USAGE
  $ csdx COMMAND
...

Commands

csdx cm:stacks:import [-c <value>] [-k <value>] [-d <value>] [-a <value>] [--module <value>] [--backup-dir <value>] [--branch <value>] [--import-webhook-status disable|current]

Import script for importing the content into the new stack

USAGE
  $ csdx cm:stacks:import [-c <value>] [-k <value>] [-d <value>] [-a <value>] [--module <value>] [--backup-dir <value>] 
  [--branch <value>] [--import-webhook-status disable|current]

OPTIONS
  -B, --branch=branch                      [optional] branch name
  -a, --alias=alias                        alias of the management token
  -b, --backup-dir=backup-dir              [optional] backup directory name when using specific module
  -c, --config=config                      [optional] path of config file
  -d, --data-dir=data-dir                  path and location where data is stored
  -k, --stack-api-key=stack-api-key        API key of the target stack
  -m, --module=module                      [optional] specific module name
  -y, --yes                                [optional] Override marketplace prompts
  --import-webhook-status=disable|current  [default: disable] Webhook state

DESCRIPTION
  ...
  Once you export content from the source stack, import it to your destination stack by using the cm:stacks:import 
  command.

ALIASES
  $ csdx cm:import

EXAMPLES
  csdx cm:stacks:import --stack-api-key <stack_api_key> --data-dir <path/of/export/destination/dir>
  csdx cm:stacks:import --config <path/of/config/dir>
  csdx cm:stacks:import --module <single module name>
  csdx cm:stacks:import --module <single module name> --backup-dir <backup dir>
  csdx cm:stacks:import --alias <management_token_alias>
  csdx cm:stacks:import --alias <management_token_alias> --data-dir <path/of/export/destination/dir>
  csdx cm:stacks:import --alias <management_token_alias> --config <path/of/config/file>
  csdx cm:stacks:import --branch <branch name>  --yes