@contentstack/cli-cm-migrate-rte

    1.0.2 • Public • Published

    @contentstack/cli-cm-migrate-rte

    It is Contentstack’s CLI plugin to migrate rte. Using this command, you can copy existing value of HTML RTE into JSON RTE.

    Usage

    $ npm install -g @contentstack/cli-cm-migrate-rte
    $ csdx COMMAND
    running command...
    $ csdx (-v|--version|version)
    @contentstack/cli-cm-migrate-rte/1.0.2 darwin-x64 node-v14.16.0
    $ csdx --help [COMMAND]
    USAGE
      $ csdx COMMAND
    ...

    Commands

    csdx cm:migrate-rte

    Migration script for migrating HTML RTE to JSON RTE

    USAGE
      $ csdx cm:migrate-rte
    
    OPTIONS
      -a, --alias=alias                Alias for the management token to be used
      -c, --content_type=content_type  The content-type from which entries need to be migrated
      -d, --delay=delay                [default: 1000] Provide delay in ms between two entry update
    
      -g, --isGlobalField              This flag is set to false by default. It indicates that current content-type is
                                       global-field
    
      -h, --htmlPath=htmlPath          Provide path of Html RTE to migrate
    
      -j, --jsonPath=jsonPath          Provide path of JSON RTE to migrate
    
      -p, --configPath=configPath      Path to config file to be used
    
      -y, --yes                        Agree to process the command with the current configuration
    
    EXAMPLES
      General Usage
      csdx cm:migrate-rte -p path/to/config.json
    
      Using Flags
      csdx cm:migrate-rte -a alias -c content_type_uid -h htmlPath -j jsonPath
    
      Nested RTE
      csdx cm:migrate-rte -a alias -c content_type_uid -h modular_block_uid.block_uid.html_rte_uid -j 
      modular_block_uid.block_uid.json_rte_uid
    
      csdx cm:migrate-rte -a alias -c content_type_uid -h group_uid.html_rte_uid -j group_uid.json_rte_uid
    
      Global Field
      csdx cm:migrate-rte -a alias -c global_field_uid -g -h htmlPath -j jsonPath
    

    See code: src/commands/cm/migrate-rte/index.js

    csdx help [COMMAND]

    display help for csdx

    USAGE
      $ csdx help [COMMAND]
    
    ARGUMENTS
      COMMAND  command to show help for
    
    OPTIONS
      --all  see all commands in CLI
    

    See code: @oclif/plugin-help

    Install

    npm i @contentstack/cli-cm-migrate-rte

    DownloadsWeekly Downloads

    121

    Version

    1.0.2

    License

    MIT

    Unpacked Size

    32.9 kB

    Total Files

    6

    Last publish

    Collaborators

    • shafeeqd959
    • mynk
    • kego1992
    • roshangade
    • iyerrama29
    • uukkoji
    • cloudaccounts
    • gautam.lodhiya
    • hiteshshetty