DatoCMS CLI

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:

Terminal window
npx datocms plugins:available

Install a plugin

Install a plugin into the current CLI installation:

Terminal window
npx datocms plugins:install @datocms/cli-plugin-contentful

After 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:

Terminal window
npx datocms plugins:uninstall @datocms/cli-plugin-contentful

Last updated: