yireo / magento2-tablerate-commands
N/A
Package info
github.com/yireo/Yireo_TablerateCommands
Type:magento2-module
pkg:composer/yireo/magento2-tablerate-commands
0.0.3
2026-11-25 16:52 UTC
Requires
- php: >=8.2 <8.6
- ext-pcre: *
- league/csv: ^9.27.0
- magento/framework: ^103.0
- magento/module-directory: ^100.4
- magento/module-offline-shipping: ^100.4
- magento/module-store: ^101.1
- psr/log: ^1.0 || ^2.0 || ^3.0
- symfony/console: ^5.0 | ^6.0 | ^7.0
Requires (Dev)
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-11-29 21:06:56 UTC
README
A Magento 2 module offering CLI commands to manipulate table rates
Installation
composer require yireo/magento2-tablerate-commands bin/magento module:enable Yireo_TablerateCommands
Usage
List all existing tablerates (optionally only those of website ID 1):
bin/magento yireo_tablerates:list bin/magento yireo_tablerates:list --website_id=1
Export all existing tablerates with website ID 1:
bin/magento yireo_tablerates:export 1 test.csv bin/magento yireo_tablerates:export 1 test.csv --overwrite
Import tablerates with website ID 1:
bin/magento yireo_tablerates:import 1 test.csv bin/magento yireo_tablerates:import 1 test.csv --overwrite
Notes:
- The CSV file must have the extension
.csv. The export refuses to write intopub/orapp/etc/. - Import and export only handle the tablerates of the condition (
carriers/tablerate/condition_name) configured for the website. Tablerates of other conditions are left untouched. - With
--overwrite(or--overwrite=1), the import replaces the existing tablerates of the website for that condition. - An import of a CSV file without any tablerates is refused.
- The import validates all rows first (country, region, postcode and numbers). If any row is invalid, nothing is changed.
- Text columns of the export are escaped against spreadsheet formula injection.