✨ We just launched Fimo.ai - an AI Website Builder to create websites in minutes - Try it now

Strapi plugin logo for Strapi 5 Export/Import CSV Plugin

Strapi 5 Export/Import CSV Plugin

CSV Export/Import for Strapi - Bulk export/import content to CSV. Supports text, numbers, relations. Safe updates only. One-click in admin panel.

thumbnail for Strapi 5 Export/Import CSV Plugin

Strapi 5 Export/Import CSV Plugin

Features

  • Adds export/import buttons to configured Strapi content types
  • Exports data to CSV format with selected fields
  • Imports data from CSV while preserving relationships
  • Supports various field types with automatic conversion

Installation

npm install export-import-strapi5-plugin

Configuration

Add to ./config/plugins.js:

module.exports = ({ env }) => ({
  'export-import-strapi5-plugin': {
    enabled: true,
    config: {
      entities: {
        'api::product.product': {
          fields: [
            'category.name',
            'brand.name',
            'name',
            'slug',
            'price',
            'sale',
            'hit',
            'available',
            'popularity',
          ],
        },
        // Add other content types as needed
      },
    },
  },
});

Configuration Options

  • entities: Object containing content type configurations
    • Key: Content Type UID (e.g. "api::product.product")
    • fields: Array of fields to include in export/import
      • Supports nested fields with dot notation
      • Omit documentID - it's automatically included

Supported Field Types

TypeImport HandlingExample
IntegerConvert to integer"42"42
BigIntegerConvert to integer"1234567890" → ...
FloatConvert to float"3.14"3.14
DecimalConvert to float"99.99"99.99
BooleanConvert 'true'/'false' to boolean"true"true
String/TextTrim whitespace" text ""text"

Usage Notes

  1. Record Identification:

    • Imports update existing records using documentID
    • This field is automatically included in exports
    • Never remove/modify documentID in CSV files
  2. Relationship Handling:

    • Relationships are exported (e.g. category.name)
    • Relationship data is read-only during import
    • Only direct fields of the entity are updated

Example CSV Format

For api::product.product:

documentID,category.name,brand.name,name,slug,price,sale,hit,available,popularity
1,Electronics,Sony,TV,sony-tv,999.99,true,true,true,5
2,Electronics,Samsung,Phone,samsung-phone,799.99,false,true,true,8

Limitations

  1. Only updates existing records (by documentID)
  2. Relationship fields are read-only during import
  3. Not all Strapi field types are supported
  4. CSV files must maintain original documentIDs

UI Integration

After installation:

  1. Navigate to Content Manager
  2. Select configured content type
  3. Find new buttons in list view:
    • Export CSV - Download current data
    • Import CSV - Update records from file

Note: Always back up your data before performing imports

Install now

npm install export-import-strapi5-plugin

STATS

No GitHub star yet3 weekly downloads

Last updated

339 days ago

Strapi Version

5.12.0 and above

Author

github profile image for maxim
maxim

Useful links

Create your own plugin

Check out the available plugin resources that will help you to develop your plugin or provider and get it listed on the marketplace.