Importing content from other CMSs
The CLI is extensible via plugins. DatoCMS publishes two official plugins that import an existing project from another CMS into DatoCMS:
@datocms/cli-plugin-contentful: import a Contentful space.@datocms/cli-plugin-wordpress: import a WordPress site.
Each plugin adds a new top-level command to the CLI once installed.
Discover available plugins
To list the official plugins published by DatoCMS:
npx datocms plugins:availableInstall a plugin
Install a plugin into the current CLI installation:
npx datocms plugins:install @datocms/cli-plugin-contentfulAfter install, the plugin's commands become available alongside the built-in ones. The Contentful plugin adds datocms contentful:import; the WordPress plugin adds datocms wordpress:import.
Run the import
Each plugin has its own dedicated guide that walks through the full import flow (required credentials, mapping options, asset handling, and known limitations):
Uninstall a plugin
When you no longer need a plugin (for example after a one-off import), remove it with:
npx datocms plugins:uninstall @datocms/cli-plugin-contentful