CSV Import Export
Import and export data from and to your strapi V5 Instance
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
1...
2"strapi-csv-import-export": {
3 config: {
4 authorizedExports: ["api::machine.machine"],
5 authorizedImports: ["api::machine.machine"]
6 }
7}
8...
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
Install now
npm install strapi-csv-import-export
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.