docs/content/en/extensions/import-export-designs.md
Meshery supports two primary operations for working with designs: Import and Export. A design in Meshery is a structured model describing how various components (e.g., Kubernetes manifests, Helm charts, or Docker Compose objects) should be managed and deployed. This document details the core concepts, the import/export processes, and the available methods to perform them.
Meshery treats each design as a combination of:
When importing a design, Meshery:
When exporting a design, Meshery:
/api/pattern/download/{id}.current, original, oci, helm-chart).You can import designs into Meshery through either Meshery CLI or Meshery UI.
mesheryctl design import --file <PATH/URL> --source-type <TYPE>
# Example: Import Kubernetes manifest
mesheryctl design import -f ./app-deployment.yaml -s manifest
After you initiate an import, Meshery executes a dataflow sequence to properly handle the design:
Client submits a design
A POST request is sent to /api/pattern/import, containing a design file. If the design is sourced from Kubernetes Manifests, Docker Compose, or Helm Charts, it is first converted into a standard Kubernetes Manifest.
Pattern Engine queries registry
Meshery queries the component registry to match the design’s kind, apiVersion, and other identifiers. If the design originates from non-Meshery formats, Meshery attempts to transform it accordingly.
System converts design format
Validated components are stored in Meshery Once validated, the design is stored in Meshery. Users can later deploy it to a supported platform (e.g., Kubernetes, Consul, Istio) using Meshery UI or CLI.
Designs can also be exported either via Meshery CLI or Meshery UI. During export, Meshery gathers the design’s components, relationships, and metadata into a specified format.
mesheryctl design export --type <FORMAT> --output <DIRECTORY>
# Example: Export to OCI format
mesheryctl design export --type oci -o ./exports
current, original, oci).current, original, oci), and delivers it as a YAML file or OCI artifact via CLI or UI download.