You are browsing documentation for an outdated version. See the latest documentation here.
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
- Install Portal CLI and set up the configuration.
Apply customization from default Dev Portal
To apply customizations from one Dev Portal to another, do the following:
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}
.Clone the Kong Portal Templates repository:
git clone https://github.com/Kong/kong-portal-templates
Move into
kong-portal-templates
:cd kong-portal-templates
Fetch the default workspace:
portal fetch default
Copy the templates from the default workspace to another workspace:
cp workspaces/default workspaces/{WORKSPACE_NAME}
Deploy the templates to the new workspace:
portal deploy {WORKSPACE_NAME}