Migrating Templates Between Workspaces

The template styling from your default Dev Portal doesn’t automatically apply to new Dev Portals you create in other workspaces. However, with the Portal CLI, you can move over templates in a few steps.

Prerequisites

Apply customization from default Dev Portal

To apply customizations from one Dev Portal to another, do the following:

  1. From your Kong Manager, create a new Workspace and enable a new Dev Portal. In the rest of this document, the new Workspace name will be referred to as {WORKSPACE_NAME}.

  2. Clone the Kong Portal Templates repository:

    1. git clone https://github.com/Kong/kong-portal-templates
  3. Move into kong-portal-templates:

    1. cd kong-portal-templates
  4. Fetch the default workspace:

    1. portal fetch default
  5. Copy the templates from the default workspace to another workspace:

    1. cp workspaces/default workspaces/{WORKSPACE_NAME}
  6. Deploy the templates to the new workspace:

    1. portal deploy {WORKSPACE_NAME}