Import & Export Templates
Templates are portable. Export them as JSON files to back up your metafield structure, share it with other stores, or hand it off to a client. Import templates from JSON files whether they were exported from another store, generated by AI, or shared by a colleague.
Exporting Templates
Steps
- Navigate to the Templates section in the app menu
- Select the resource type containing the templates you want to export
- Click the "Export" button
- Select specific templates or click "Select all"
- Click Export
A JSON file downloads automatically with the filename format: metafield-templates-{date}.json
What Gets Exported
The export includes everything about your template structure:
- Template titles and descriptions
- Template status (active/disabled)
- All fields with their types, labels, namespaces, and keys
- Validation rules and configuration options
- Field ordering
- Filter conditions
Exporting a Built-In Pack
You can also export any of the 10 built-in template packs as JSON:
- Go to the "Install a Metafield Pack" tab
- Click "Export JSON" on any pack card
This gives you the pack in the same portable JSON format useful for sharing with stores that don't have Metafield Studio, or as a starting point for AI-assisted customization.
Importing Templates
Steps
- Navigate to the Templates section in the app menu
- Click the "Import" button
- Upload a JSON file:
- Click the upload area to browse, or
- Drag and drop the file
- Metafield Studio validates the file and shows:
- Number of templates found
- Export date (if available)
- Any validation errors
- Filter by resource type if the file contains templates for multiple resources
- Select which templates to import (or click "Select all")
- Click Import
- A confirmation shows how many templates and fields were created
File Requirements
- Format: JSON
- Maximum size: 10 MB
- Required structure: Must have a
setsarray containing template objects - Each template requires:
resourceType,title, andfieldsarray - Each field requires:
label,namespace,key, andtype
What Happens During Import
- Templates are created in your store's Metafield Studio instance
- Fields are added with all their configuration (validation, options, notes)
- If a template with the same title already exists, the imported one is created as a new, separate template (no overwriting)
- Field ordering is preserved from the source file
Common Use Cases
Multi-Store Consistency
You manage 3 Shopify stores and want identical metafield structures across all of them.
- Set up your templates on Store A
- Export them as JSON
- Import the same JSON into Store B and Store C
- All three stores now have the same metafield architecture
Time saved: Hours of manual recreation per store.
Agency Handoff
You're an agency setting up a client's store. You've built their metafield structure and want to document it.
- Export the templates as JSON
- Include the JSON file in your project handoff
- If the client needs to rebuild or set up a new store, they import the file and get the exact same structure
Backup Before Changes
Before making significant changes to your templates, export them as a backup.
- Export all templates
- Save the JSON file with a date (e.g.,
templates-backup-2026-03-25.json) - Make your changes
- If something goes wrong, import the backup to restore your previous configuration
Community Sharing
Built a great template structure for your niche? Export it and share the JSON file with other merchants in your industry. They import it and get your expertise without the setup work.
Troubleshooting
"Invalid JSON format"
The file structure doesn't match the expected format. Make sure:
- The root object has a
setsarray - Each set has
resourceType,title, andfields - Each field has
label,namespace,key, andtype
"File too large"
The maximum import file size is 10 MB. If your file exceeds this:
- Split it into multiple files by resource type
- Remove any unnecessary whitespace or formatting
"Unknown field type"
One or more fields use a type value that Shopify doesn't recognize. Check the supported field types list and correct the type value in your JSON.