Contentstack CLI plugin to migrate HTML RTE to JSON RTE
npm install @contentstack/cli-cm-migrate-rteIt is Contentstack’s CLI plugin to migrate rte. Using this command, you can copy existing value of HTML RTE into JSON RTE.
* @contentstack/cli-cm-migrate-rte
* Usage
* Commands
``sh-session`
$ npm install -g @contentstack/cli-cm-migrate-rte
$ csdx COMMAND
running command...
$ csdx (--version)
@contentstack/cli-cm-migrate-rte/1.6.4 darwin-arm64 node-v24.13.0
$ csdx --help [COMMAND]
USAGE
$ csdx COMMAND
...
* csdx cm:entries:migrate-html-rte
* csdx cm:migrate-rte
Migration script to migrate content from HTML RTE to JSON RTE
`
USAGE
$ csdx cm:entries:migrate-html-rte [-c
[--global-field] [-y] [--branch
FLAGS
-a, --alias=
-c, --config-path=
-y, --yes Avoids reconfirmation of your configuration.
--batch-limit=
--branch=
--content-type=
--delay=
subsequent entries of a content type. The default value is 1,000 milliseconds.
--global-field Checks whether the specified UID belongs to a content type or a global field. This flag
is set to false by default.
--html-path=
--json-path=
--locale=
--stack-api-key=
flag.
DESCRIPTION
Migration script to migrate content from HTML RTE to JSON RTE
ALIASES
$ csdx cm:migrate-rte
EXAMPLES
General Usage
$ csdx cm:entries:migrate-html-rte --config-path path/to/config.json
Using Flags
$ csdx cm:entries:migrate-html-rte --alias alias --content-type content_type_uid --html-path html-path --json-path json-path
Nested RTE
$ csdx cm:entries:migrate-html-rte --alias alias --content-type content_type_uid --html-path modular_block_uid.block_uid.html_rte_uid --json-path modular_block_uid.block_uid.json_rte_uid
$ csdx cm:entries:migrate-html-rte --alias alias --content-type content_type_uid --html-path group_uid.html_rte_uid --json-path group_uid.json_rte_uid
Global Field
$ csdx cm:entries:migrate-html-rte --alias alias --content-type global_field_uid --global-field --html-path html-path --json-path json-path
`
_See code: src/commands/cm/entries/migrate-html-rte.js_
Migration script to migrate content from HTML RTE to JSON RTE
`
USAGE
$ csdx cm:migrate-rte [-c
[--global-field] [-y] [--branch
FLAGS
-a, --alias=
-c, --config-path=
-y, --yes Avoids reconfirmation of your configuration.
--batch-limit=
--branch=
--content-type=
--delay=
subsequent entries of a content type. The default value is 1,000 milliseconds.
--global-field Checks whether the specified UID belongs to a content type or a global field. This flag
is set to false by default.
--html-path=
--json-path=
--locale=
--stack-api-key=
flag.
DESCRIPTION
Migration script to migrate content from HTML RTE to JSON RTE
ALIASES
$ csdx cm:migrate-rte
EXAMPLES
General Usage
$ csdx cm:entries:migrate-html-rte --config-path path/to/config.json
Using Flags
$ csdx cm:entries:migrate-html-rte --alias alias --content-type content_type_uid --html-path html-path --json-path json-path
Nested RTE
$ csdx cm:entries:migrate-html-rte --alias alias --content-type content_type_uid --html-path modular_block_uid.block_uid.html_rte_uid --json-path modular_block_uid.block_uid.json_rte_uid
$ csdx cm:entries:migrate-html-rte --alias alias --content-type content_type_uid --html-path group_uid.html_rte_uid --json-path group_uid.json_rte_uid
Global Field
$ csdx cm:entries:migrate-html-rte --alias alias --content-type global_field_uid --global-field --html-path html-path --json-path json-path
``