CSV Import Export logo

CSV Import Export

By Antoine

Import and export data from and to your strapi V5 Instance

Latest version

v0.0.6

released March 22, 2025

npm install strapi-csv-import-export

Import Export with CSV for Strapi 5

Import/Export data from and to your database for Strapi 5 - a fork of strapi-import-export, but removed the JSON format, and used new library for CSV processing.

NPM Install:

npm i strapi-csv-import-export

Guide

This plugin allows you to import / export with csv format on strapi collection.

To do so, you need to add into the config/plugin.ts

...
"strapi-csv-import-export": {
          config: {
            authorizedExports: ["api::machine.machine"],
            authorizedImports: ["api::machine.machine"]
  }
}
...

Config

authorizedExports: String[] - A list of collection slugs where you allow exports for the app authorizedImports: String[] - A list of collection slugs where you allow imports for the app

ℹ️ Info : By default, no collection is allowed for export / import.


Upgrades from the original repo

There was a few things added from the original repo

  • Cleaning some code / removed comments
  • Removed JSON V2 / JSON format
  • Used json-2-csv to parse and generate csv
  • Added some config for CSV generation
  • Added config to allow only some collections for import / export

TODO

  • Pass json-2-csv config as plugin config
  • Re-introduce properly deepness
  • More testing (media hasn't been tested)
  • Add imports with relation lists
  • Added french translations

Submit your content

Share your work with the community and get it listed in the Strapi ecosystem for everyone to discover and use.

Submit
Submit your content