Exporting space assets

You can export assets from a deployment space so that you can share the space with others or reuse the assets in another space.

For a list of assets that you can export from space, refer to Adding assets to a deployment space.

Exporting space assets from the UI

Important:

To avoid problems with importing the space, export all dependencies together with the space. For more information, see Exporting a project.

To export space assets from the UI:

  1. From your deployment space, click the export space (Import or Export space icon) icon. From the dropdown list, select Export space.
  2. Click New export file. Specify a file name and an optional description. Tip: To encrypt sensitive data in the exported archive, type the password in the Password field.
  3. Select the assets that you want to export with the space.
  4. Click Create to create the export file.
  5. After the space is exported, click the download (Download icon) to save the file.

You can reuse this space by choosing Create a space from a file when you create a new space.

Exporting space assets by using the cpdctl tool

By using the cpdctl tool, you can export these types of assets:

  • wml_model
  • wml_model_definition
  • wml_pipeline
  • wml_function
  • wml_experiment

Refer to this example code:

$ cpdctl asset export start --space-id <space id> --assets '{"all_assets": true}' --name <my exported space>
...

ID:        <export id>
Name:      <my exported space>
Created:   <date>
State:     completed

$ cpdctl asset export download --space-id <my exported space> --export-id <export id> --output-file /tmp/space.zip
...

The following output is written to the /tmp/space.zip file:

OK

For more information, see cpdctl tool documentation.

Exporting and importing a space by using the Python client

For an example of how to export and import a deployment space by using the Watson Machine Learning Python client, view or download the sample notebook.

Learn more

To learn more about importing spaces and projects into an existing space, refer to Importing spaces and projects into existing deployment spaces.

Parent topic: Deployment spaces