CLI Commands for Cross-Linking Extension

Looking for Cross-Linking Extension for Automated Internal Linking? View the full Cross-Linking Extension for Automated Internal Linking page to explore features, configuration options, and pricing.

Command line tools for the Cross-Linking extension. These commands help you debug and verify cross-link replacements without visiting the frontend. Useful when setting up new rules, troubleshooting why a keyword isn't being replaced, or validating that your configuration produces the expected output.

Available Commands

Command Description
magmodules:crosslinking:preview Preview cross-link replacements for a specific entity

magmodules:crosslinking:preview

Shows what a product description, category description, or CMS page content looks like before and after cross-link replacement. Runs the same replacement logic that the frontend uses, so you can verify output without flushing cache or visiting the page.

bin/magento magmodules:crosslinking:preview --entity-type=product --entity-id=42

Options

Option Short Required Description
--entity-type -t Yes Entity type: product, category, or cms
--entity-id -i Yes The entity ID to preview
--store-id -s No Store view ID (default: 0)

What It Does

  1. Loads the description content for the specified entity
  2. Displays the original content (BEFORE)
  3. Runs the cross-link replacement engine against the content
  4. Displays the result with links inserted (AFTER)

The command respects all configuration settings: entity-type enable/disable, max links per page, case sensitivity, rule priority, and store view scoping.

Examples

Preview a product description:

bin/magento magmodules:crosslinking:preview --entity-type=product --entity-id=42

Preview a category description for a specific store:

bin/magento magmodules:crosslinking:preview --entity-type=category --entity-id=15 --store-id=1

Preview CMS page content:

bin/magento magmodules:crosslinking:preview --entity-type=cms --entity-id=2

Example Output

--- BEFORE ---
Our yoga mats are made from premium materials. Whether you practice yoga
daily or prefer hiking on weekends, we have the right gear for you.

--- AFTER ---
Our <a href="/collections/yoga-mats.html" title="Yoga Mats">yoga mats</a>
are made from premium materials. Whether you practice yoga daily or prefer
<a href="/outdoor/hiking.html">hiking</a> on weekends, we have the right
gear for you.

When to Use

  • After creating or modifying cross-link rules, to verify they match correctly
  • When debugging why a keyword isn't being replaced on a specific page
  • To test rule priority and overlapping keyword behavior
  • To verify store-scoped rules are applied correctly
  • Before flushing cache — see the result without affecting live pages

Error Messages

Message Cause
Module is not enabled The module is disabled in General configuration
Both --entity-type and --entity-id are required Missing required options
Unknown entity type "..." Invalid entity type (use: product, category, or cms)
No description content found for this entity The entity has no description/content set

Need More Help?

Documentation:

Support:

For a complete overview of features and configuration options, see Cross-Linking Extension for Automated Internal Linking.

Article Updated:
Download PDF
star star star star star
star star star star star
Gaaf - digital agency
We have tried the integration with SnelStart through several different providers, and this is the only solution that simply works. We needed support on two occasions, and it was provided quickly and professionally. We do recommend this company!
Google 12 May 2026
star star star star star
star star star star star
Andrew Velikiy
Great vendor with handy modules and quick support!
Google 13 Apr 2026
star star star star star
star star star star star
Alexandru-Manuel Carabus
Magmodules sets the bar for Magento module quality and support—we check their catalog first for client feature requests, and they’re our first choice for licenses.
Google 11 Nov 2025
star star star star star
star star star star star
Matt Austin
Possibly the fastest support response times of any Magento Extension vendor. Great extensions too!
Google 09 Sep 2025
star star star star star
star star star star star
Jan Privé
Dankzij de heldere uitleg en snelle reactie van Magmodules kon mijn vraag, en dus mijn Magento-probleem, binnen enkele uren worden beantwoord. Doeltreffend, zonder moeilijke termen, gewoon zo als het zou moeten zijn.... Bedankt!
Google 05 Sep 2025
star star star star star
star star star star star
Denis Metzler
To evaluate a provider, it is not enough to consider only the product offered, but also its after-sales service, such as support and troubleshooting. Magmodules has been extremely satisfactory at all levels on multiple occasions and sets the bar at the top when comparing the competition.
Google 02 Sep 2025
star star star star star
star star star star star
Bleijenberg winkelinrichting en materialen
Goed bereikbaar, reageren snel en denken oplossingsgericht. Een aanrader.
Google 30 Jul 2025
star star star star star
star star star star star
Patrick Verduijn
Magmodules biedt plugins aan die van hoge kwaliteit zijn tegen een goede prijs, waar dit bedrijf in uitblinkt is de bereidheid om de zeldzame feedback & problemen met de plugins te willen onderzoeken, mee te willen denken in het debuggen van problemen en goede oplossingen toe te passen. In mijn decennium ervaring met Magento & 3th parties is Magmodules absoluut een uniqum binnen de markt.
Google 25 Jul 2025
star star star star star
star star star star star
Erik de Groot
Magemodules heeft hele sterke Magento extensies en een proactieve support. Al jaren heel erg tevreden over jullie service en producten!
Google 18 Jul 2025
star star star star star
star star star star star
René Zeuner
We are using the Mollie Magento extension from Magmodules. It works excellently without flaws. Very fast, competent and friendly support. Thanks!
Google 30 Jun 2025