/
Importing/Exporting/Cloning a Script

Importing/Exporting/Cloning a Script

As a time saving measure, CX Create supports for the importing/exporting of scripts to different clusters. This allows for scripts to be copied and saved into different CX Create locations. Duplicating scripts for use within the same cluster can be achieved by cloning.

  1. Export a Script 
  2. Import a Script
  3. Clone a Script

1. Export a Script

All existing scripts can be exported as .json (JavaScript Object Notation) files.

  • Browse to the script that you would like to export
  • Click the export button on the right

    • Script will be downloaded locally to your PC, based on your save settings
      • Script Name.json
        *The filename will be generated automatically based on the name of the script
         Do not change the filename.
        A change of filename while it is saved on your PC will not be reflected on the import. If you would like to amend the name of the script, this should be done after it is imported into CX Create.


2. Import a Script

Scripts (like above) that have been saved locally as .json files can be imported into any CX Create cluster that you have access to.

  • On the Scripts page, click Import Script
  • Browse your local drive for the saved .json file and click Open to start the import process
    • Clicking on any file that does not have a .json extension will not be successful. There will be no error message displayed.
    • Depending on the size of the script/file, it may be a few seconds before the "Loading script" message appears.
  • Once the script is loaded, it will open to the Script Documentation page
    • Any necessary changes to the script can be made from here

*Note that CX Create does not check for filename uniqueness here. If you are importing a script that has the same name as a script that already exists on the cluster, the file will still upload. To prevent confusion, a quick search of the existing scripts should be done before the import, and if it will be a duplicate, the script name should be changed immediately after upload.


3. Clone a Script

Scripts can also be copied within the same cluster. Instead of exporting and re-importing the script, this can be done with the clone feature.

  • Browse to the script that you would like to clone
  • Click the Clone button on the right

    • On the clone script pop-up:

      • New label: By default, a unique script name will be generated. The new script name will be the script name being cloned + (Copy).
      • New description: [optional]
        *Any existing description on the source script WILL NOT be copied over.
    • Click Clone to copy the script
      • Depending on the size of the script/file, it may be a few seconds before the "Loading script" message appears.
      • Once the script is loaded, it will open to the Script Documentation page
        • Any necessary changes to the script can be made from here