CLI Commands for KatanaPIM Extension
Command line tools for the KatanaPIM Connect extension. These commands are useful for manual synchronization, automation scripts, and troubleshooting.
Available Commands
| Command | Description |
|---|---|
katana:import:full |
Run full synchronization from KatanaPIM |
katana:import:incremental |
Run incremental synchronization (delta) |
katana:import:full
Performs a complete synchronization of all entities from KatanaPIM.
# Sync everything (attributes, categories, products, assets)
bin/magento katana:import:full
# Sync only attributes
bin/magento katana:import:full --attributes
# Sync only categories
bin/magento katana:import:full --categories
# Sync only products
bin/magento katana:import:full --products
# Sync only assets
bin/magento katana:import:full --assets
Options:
| Option | Description |
|---|---|
--attributes |
Run attributes update only |
--categories |
Run categories update only |
--products |
Run products update only |
--assets |
Run assets update only |
When no options are provided, all entity types are synchronized in the correct order.
How sync works:
The synchronization operates in two phases:
- Data Retrieval — Fetches current data from the KatanaPIM API
- Magento Updates — Creates or updates entities based on your configuration
Whether new entities are automatically created depends on your settings at Stores → Configuration → KatanaPIM → Automation:
- Auto create new categories
- Auto create new products
Output: Shows progress and results for each entity type.
Use this when:
- Initial setup and first import
- After major PIM changes
- Weekly/daily maintenance
- Troubleshooting sync issues
katana:import:incremental
Performs a delta synchronization, importing only items that have changed since the last sync.
bin/magento katana:import:incremental
Output: Shows progress and number of items updated.
Use this when:
- Regular scheduled updates
- Keeping Magento in sync throughout the day
- After individual product changes in PIM
Examples
Initial Setup
# First time setup - import everything
bin/magento katana:import:full
Daily Maintenance
# Full sync during maintenance window
bin/magento cache:flush
bin/magento katana:import:full
bin/magento indexer:reindex
Incremental Updates
# Quick sync of recent changes
bin/magento katana:import:incremental
Step-by-Step Import
For large catalogs, import in stages:
# Step 1: Import and map attributes first
bin/magento katana:import:full --attributes
# Step 2: Configure attribute mapping in admin
# (manual step - use Attributes grid)
# Step 3: Import categories
bin/magento katana:import:full --categories
# Step 4: Import products
bin/magento katana:import:full --products
# Step 5: Import images and videos
bin/magento katana:import:full --assets
Troubleshooting
# Run with verbose output
bin/magento katana:import:full -v
# Check what would be synced without making changes
bin/magento katana:import:full --attributes
Indexer Recommendations
For large catalogs, set your indexers to "Update on Schedule" mode before running imports:
# Check current indexer modes
bin/magento indexer:show-mode
# Set all indexers to schedule mode
bin/magento indexer:set-mode schedule
Why "Update on Schedule"?
With "Update on Save" mode, Magento triggers reindexing after every single entity import — extremely slow for substantial datasets. Schedule mode queues index updates and processes them in batches, significantly improving import performance.
Need More Help?
Documentation:
- All Help Articles - Complete documentation overview
Support:
- Contact Support - Get help from our team