Migrate to PagibleAI CMS from WordPress, TYPO3, Drupal, Joomla or Statamic

Moving an existing website to PagibleAI usually means hundreds of pages, files, redirects and translations that nobody wants to copy by hand. The aimeos/pagible-import package reads the database of your current CMS and creates the pages in PagibleAI, including their content, media, SEO data and URLs. You can run the import again later to pick up changes made in the old system until you switch over.

Importers are available for WordPress, TYPO3, Drupal, Joomla and Statamic. They are still in beta, so back up your data and test the import on a staging installation before you run it on the live site. This page covers the steps all importers share, and the guide for your system explains the rest.

Migration at a glance

  1. Step 1

    Connect

    Add a database connection to the old CMS

  2. Step 2

    Dry run

    See what would be imported with --dry-run

  3. Step 3

    Test import

    Import into staging or a separate tenant and review the pages

  4. Step 4

    Live import

    Import into the live site and update it with --since

  5. Step 5

    Switch over

    Run a final import and point the domain to PagibleAI

Guides for each system

WordPress

Posts of WordPress 4.0+ as blog articles with media, Yoast or Rank Math data, old permalinks and private posts

TYPO3

Page trees of TYPO3 9+ with Bootstrap Package elements, files, redirects and translations

Drupal

Nodes of Drupal 7+ with paragraphs, layouts, media, custom blocks, node access and translations

Joomla

Articles, categories and menu items of Joomla 3.10+ with content plugins, custom fields and translations

Statamic

Collection entries of Statamic 3.3+ with Bard and Replicator content, assets, SEO Pro data and localized sites

What each importer imports

Source
Pages
Files
Redirects
Translations
Restricted content
Posts as blog articles
Downloaded
Old slugs and permalinks
No
Private posts, by role
Page tree
Downloaded or local path
sys_redirect
Yes
Disabled pages
Nodes, menu tree, terms
Linked by URL
Redirect module
Yes
Node access grants
Articles, categories, menu items
Linked by URL
Redirect component
Yes
Disabled pages
Collection entries
Linked by URL
Redirect entries
Yes
Disabled pages

"Disabled pages" means restricted content is imported, but not shown until you enable the page or set its frontend access in PagibleAI.

SEO data is imported as page meta data: Yoast SEO and Rank Math for WordPress, the SEO and social media fields for TYPO3, the Metatag module for Drupal, the article, category and menu item settings for Joomla and SEO Pro or meta_*/og_* fields for Statamic.

Users and accounts aren't imported. Downloaded files are stored on the public disk of PagibleAI (CMS_DISK). Files linked by URL stay on the old server, so it must keep serving them after the move, or you upload them to the same URLs elsewhere.

Before you import

Install the package if you don't use the full aimeos/pagible distribution. PagibleAI core must be installed and migrated, e.g. with php artisan cms:install:

composer require aimeos/pagible-import

Then prepare the target installation:

  • Back up the tenant you import into, e.g. with php artisan cms:backup (add --tenant for another tenant than the default one).
  • Import into a staging installation or a separate tenant (--tenant) first. Imported pages are published right away.
  • If the old site has content only for logged-in users, set up frontend access control before the import. Without it, restricted Drupal nodes fail to import and private WordPress posts become disabled pages.
  • Only the TYPO3 and WordPress importers can assign a theme (--theme). For the other systems, set the theme of the imported root page in the admin panel afterwards.

Connect the source database

The importers read the database of the old CMS through a Laravel database connection. Add it to the connections array in config/database.php, e.g. for WordPress:

'wordpress' => [
    'driver' => 'mysql',
    'host' => env('WP_DB_HOST', '127.0.0.1'),
    'database' => env('WP_DB_DATABASE', 'wordpress'),
    'username' => env('WP_DB_USERNAME', 'root'),
    'password' => env('WP_DB_PASSWORD', ''),
],

Each importer uses its own connection name by default (see the table in the next section); pass another one with --connection. Any database driver supported by Laravel works if the old CMS was installed with it. A copy of the production database is enough, and a database user with read-only rights is the safest choice. The table prefix is set differently for each system, so check the guide for yours.

Run the import

Source
Command
Default connection
Default editor
WordPress
cms:wp-import
wordpress
wp-import
TYPO3
cms:t3-import
typo3
t3-import
Drupal
cms:drupal-import
drupal
drupal-import
Joomla
cms:joomla-import
joomla
joomla-import
Statamic
cms:statamic-import
statamic
statamic-import

Start with --dry-run. It shows which pages would be created, updated or disabled without changing anything:

php artisan cms:wp-import --domain=example.com --dry-run

If the list looks right, run the same command without --dry-run. The importer prints each warning, e.g. for content it can't convert, and ends with a summary like:

Import complete. 412 imported, 0 updated, 0 unchanged (412/412 pages processed).
Finished with 0 failures and 3 warnings.

The command exits with a non-zero code if a record failed to import, so you can use it in deployment scripts. Scheduled WordPress posts and Statamic entries as well as newer Drupal draft revisions and scheduled publications become pending versions, which cms:publish publishes at their date. It runs every 30 minutes if the Laravel scheduler is set up. TYPO3 and Joomla import scheduled content as disabled pages instead.

Imports of large sites can take a while, so run them in screen or tmux to keep them going if your SSH connection drops. These options work with every importer:

Option
Default
Description
--connection
Name of the source system
Laravel database connection of the old CMS
--domain
Domain of the imported pages, if PagibleAI serves several domains (CMS_MULTIDOMAIN); TYPO3 also takes the root page UID, e.g. example.com:1
--lang
en, or the site language for WordPress, Statamic and TYPO3 with --path
Language code of the imported pages; pass the default language of the old site if it isn't detected and isn't English
--tenant
Tenant the pages are imported into
--editor
Importer name, e.g. wp-import
Editor name of the imported versions, which also identifies the pages of earlier imports
--since
Only import records changed since the date, e.g. 2026-01-31, in the time zone of the Laravel application (--timezone for Joomla)
--dry-run
Show what would be imported without changing anything

The options of each importer are listed in its guide: WordPress, TYPO3, Drupal, Joomla and Statamic.

Run an import again

You can run every importer again to update the pages of earlier runs, e.g. while editors still work in the old CMS. The importer finds its pages by their URL and the --editor value, so use the same --editor and the same other options as before.

  • Pages that were changed in PagibleAI since the last import aren't overwritten. The same applies to pages with the same URL that were created by someone else. Both are reported.
  • Pages whose source records aren't imported any more, e.g. because they were deleted or unpublished, are disabled. The Drupal importer only reports them and moves them to the trash with --prune.
  • --since=2026-01-31 only imports records changed since that date and keeps the other pages as they are. This makes repeated imports of large sites faster.

What counts as a change and which records --since covers differs between the systems. The guide for your system has the details.

After the import

Check the result before you switch the domain to PagibleAI:

  1. Go through the warnings and failures in the output. Rebuild skipped plugins, forms and dynamic blocks with PagibleAI elements or dynamic content.
  2. For Drupal, Joomla and Statamic, set the theme of the imported root page, then check the navigation in the frontend.
  3. Review the disabled pages in the page tree. Enable them or set their frontend access.
  4. Open a few old URLs to check that the imported redirects work.
  5. Make sure the Laravel scheduler runs, so pending versions of scheduled content get published.

When everything is in place, stop editing in the old CMS and run a final import without --since. It also picks up the changes a --since run doesn't cover, like changed Joomla menu items. For Drupal, add --prune to move the pages of deleted nodes to the trash. Then point the domain to PagibleAI. If files are linked by URL instead of downloaded, keep the old server serving them at the same URLs.

Your CMS isn't listed?

For other systems, write your own import script with the PHP API, which creates pages, elements and files from Laravel code. For smaller sites, an AI agent can also move the content page by page using the MCP tools.

If you need an importer for another CMS, open an issue on GitHub and describe the system and its version.

Troubleshooting

Can the old site stay online during the import?

Yes. The importers only read its database, so visitors and editors can keep using the old site. Import its changes later with --since and run a final import before you switch the domain.

How do I undo an import?

Restore the backup you made before the import. php artisan cms:restore --list shows the available backups, and php artisan cms:restore with the file name restores one. A backup contains one tenant, and the restore replaces all data of that tenant, including changes made after the backup. Other tenants stay as they are.

Images and files don't load on the imported pages

Pass the base URL of the old site with --file-base (or --media-url for WordPress) and import again. Referenced files are loaded from the old server, so it must stay reachable or serve the files from the same URLs.

The imported pages have the wrong language

Most importers use en unless you pass --lang. Import again with the language code of the default language of the old site, e.g. --lang=de.

Restricted pages fail to import or are disabled

Set up frontend access control before the import, and map role names of the old CMS to existing access values with --role. TYPO3, Joomla and Statamic can't transfer their restrictions, so restricted content is always imported as disabled pages that you can review.

A page is reported as changed and isn't updated

Someone edited the page in PagibleAI after the last import, or another import created a page with the same URL. Check the page in the admin panel. The importer never overwrites these pages.

Pages of an earlier import were disabled

Their source records weren't part of this run, e.g. because they were unpublished, or you imported another set of collections or content types with the same --editor value. Run the import with the same options as before, or use a separate --editor value for each part.

A translation was skipped

Another page already uses its URL, e.g. a translated home page with the same path on the same domain, or its language has no code. Pass a separate domain for the language with --language. The Statamic importer also accepts a URL path like /de/. The WordPress importer doesn't import translations.

Content of a plugin, form or dynamic block is missing

Content generated by code in the old CMS can't be imported and is reported in the output. Rebuild it with PagibleAI elements or dynamic content.