PHPackages                             falconmedia/magento2-merge-attribute-options - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [CLI &amp; Console](/categories/cli)
4. /
5. falconmedia/magento2-merge-attribute-options

ActiveMagento2-module[CLI &amp; Console](/categories/cli)

falconmedia/magento2-merge-attribute-options
============================================

Magento 2 module to Show and Merge Attribute Options through CLI

1.1.1(3w ago)132441PHPPHP &gt;=7.4

Since Mar 11Pushed 1y ago1 watchersCompare

[ Source](https://github.com/falconmedia/magento2-merge-product-attribute-options)[ Packagist](https://packagist.org/packages/falconmedia/magento2-merge-attribute-options)[ RSS](/packages/falconmedia-magento2-merge-attribute-options/feed)WikiDiscussions main Synced 2d ago

READMEChangelog (2)DependenciesVersions (5)Used By (0)

Falcon Media - Merge Attribute Options
======================================

[](#falcon-media---merge-attribute-options)

[![Supported Magento Versions](https://camo.githubusercontent.com/a504a0adb323bd8dfa1ee1ca6d8299fcf2a52d50bb943fc5fb087413b877e124/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6d6167656e746f2d253230322e342d627269676874677265656e2e7376673f6c6f676f3d6d6167656e746f266c6f6e6743616368653d74727565267374796c653d666f722d7468652d6261646765)](https://camo.githubusercontent.com/a504a0adb323bd8dfa1ee1ca6d8299fcf2a52d50bb943fc5fb087413b877e124/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6d6167656e746f2d253230322e342d627269676874677265656e2e7376673f6c6f676f3d6d6167656e746f266c6f6e6743616368653d74727565267374796c653d666f722d7468652d6261646765)

### `FalconMedia_MergeAttributeOptions`

[](#falconmedia_mergeattributeoptions)

This module is created out of frustration, because after importing products from multiple vendors, there were multiple attribute options for one and the same attribute option that already exists.

Module Features
---------------

[](#module-features)

the possibility to show the following by using CLI Commands:

- List all Product Attributes and option to filter on code, name, and input type
- List Attribute Options with Product Count
- List Attribute Options with labels per store
- Merge Attribute Options into one option

Installation
------------

[](#installation)

```
composer require falconmedia/magento2-merge-attribute-options
bin/magento module:enable FalconMedia/MergeAttributeOptions
bin/magento setup:upgrade
bin/magento setup:di:compile

```

Usage
-----

[](#usage)

### List all Attributes

[](#list-all-attributes)

`bin/magento falconmedia:attribute:list` will show all Product Attributes

You have also the possibility to filter on the attributes with the options

- `--code=` or `-C` to filter on an attribute code
- `--name=` or `-N` to filter on an Attribute Name/Label
- `--type=` or `-T` to filter on an Attribute input type

#### Examples

[](#examples)

Filter on an attribute code with `--code=`

```
❯ bin/magento falconmedia:attribute:list --code=sku
+--------------+---------------------+----------------------+---------+
| Attribute ID | Attribute Code      | Admin Name           | Type    |
+--------------+---------------------+----------------------+---------+
| 74           | sku                 | SKU                  | text    |
| 122          | sku_type            | Dynamic SKU          | boolean |
| 267          | supplier_sku        | Supplier SKU         | text    |
| 222          | xcore_suppliers_sku | Supplier - Item Code | text    |
+--------------+---------------------+----------------------+---------+

```

or with the short flag of `-C`

```
❯  bin/magento falconmedia:attribute:list -C sku
+--------------+---------------------+----------------------+---------+
| Attribute ID | Attribute Code      | Admin Name           | Type    |
+--------------+---------------------+----------------------+---------+
| 74           | sku                 | SKU                  | text    |
| 122          | sku_type            | Dynamic SKU          | boolean |
| 267          | supplier_sku        | Supplier SKU         | text    |
| 222          | xcore_suppliers_sku | Supplier - Item Code | text    |
+--------------+---------------------+----------------------+---------+

```

Get attribute list with multiple filters

```
❯  bin/magento falconmedia:attribute:list -C sku -T boolean
+--------------+----------------+-------------+---------+
| Attribute ID | Attribute Code | Admin Name  | Type    |
+--------------+----------------+-------------+---------+
| 122          | sku_type       | Dynamic SKU | boolean |
+--------------+----------------+-------------+---------+

```

### List Attribute Options with Product Count

[](#list-attribute-options-with-product-count)

```
❯ bin/magento falconmedia:attribute:list-options size
Fetching attribute options for 'size'

+-----------+----------+---------------+
| Option ID | Label    | Product Count |
+-----------+----------+---------------+
| 839       | 18 Oz    | 75            |
| 840       | 2 Oz     | 9             |
| 841       | 20 Oz    | 2             |
| 842       | 4 Oz     | 80            |
| 843       | 6 Oz     | 141           |
| 844       | 8 Oz     | 292           |
| 4200      | 12 Oz    | 655           |
| 4201      | 14 Oz    | 697           |
| 4202      | 16 Oz    | 661           |
| 6372      | 8 Oz xl  | 8             |
| 6373      | 10 Oz xl | 8             |
| 6562      | 10 oz    | 701           |
| 6563      | 12 oz    | 69            |
| 6564      | 14 oz    | 70            |
| 6565      | 16 oz    | 67            |
| 6575      | 12oz     | 14            |
| 6576      | 14oz     | 14            |
| 6577      | 16oz     | 13            |
| 6578      | 18oz     | 1             |
| 6580      | 12       | 11            |
| 6581      | 14       | 11            |
| 6582      | 16       | 11            |
| 6583      | 18       | 0             |
| 6589      | 8oz      | 4             |
| 6590      | 4oz      | 1             |
| 6591      | 6oz      | 1             |
| 6596      | 8 oz     | 9             |
| 6599      | 4 oz     | 1             |
| 6600      | 6 oz     | 1             |
+-----------+----------+---------------+

```

As you see there are multiple options for one option, but different spelled

for example 12 Oz, 12 oz, 12oz and 12 are the same option.

### List Attribute Options with labels per store

[](#list-attribute-options-with-labels-per-store)

```
❯ bin/magento falconmedia:attribute:list-options-store color
Attribute: color
+-----------+----------+------------+-------------------------------+
| Option ID | Store ID | Store Name | Label                         |
+-----------+----------+------------+-------------------------------+
| 31        | 0        | Admin      | White                         |
| 31        | 3        | Store NL   | Wit                           |
| 32        | 0        | Admin      | Black                         |
| 32        | 3        | Store NL   | Zwart                         |
| 58        | 0        | Admin      | Blue                          |
| 58        | 3        | Store NL   | Blauw                         |
| 60        | 0        | Admin      | Brown                         |
| 60        | 3        | Store NL   | Bruin                         |
| 69        | 0        | Admin      | Red                           |
| 69        | 3        | Store NL   | Rood                          |
| 94        | 0        | Admin      | Yellow                        |
| 94        | 3        | Store NL   | Geel                          |
| 98        | 0        | Admin      | Green                         |
| 98        | 3        | Store NL   | Groen                         |
| 99        | 0        | Admin      | Gray                          |
| 99        | 3        | Store NL   | Grijs                         |
| 119       | 0        | Admin      | Purple                        |
| 119       | 3        | Store NL   | Paars                         |
| 151       | 0        | Admin      | Orange                        |
| 151       | 3        | Store NL   | Oranje                        |
| 161       | 0        | Admin      | Pink                          |
| 161       | 3        | Store NL   | Roze                          |

```

### Merge Attribute Options into one option

[](#merge-attribute-options-into-one-option)

In the first output you can see the product count per Option Id. The 12 Oz is used at 655 products, so merging the other attribute options into this option is the best choice.

```
❯ bin/magento falconmedia:attribute:merge-options size 6563,6575,6580 4200
Merging attribute options for 'size'
+------------------+------------------+----------------------+---------+
| Source Option ID | Target Option ID | Merged Product Count | Status  |
+------------------+------------------+----------------------+---------+
| 6563             | 4200             | 69                   | Deleted |
| 6575             | 4200             | 14                   | Deleted |
| 6580             | 4200             | 11                   | Deleted |
+------------------+------------------+----------------------+---------+

```

###  Health Score

36

—

LowBetter than 79% of packages

Maintenance63

Regular maintenance activity

Popularity23

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~246 days

Total

3

Last Release

25d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0ab506c6fbf58517ea41c5959be2ea46d89f403438433c6eb6042afcfd0b7c94?d=identicon)[falconmedia](/maintainers/falconmedia)

---

Top Contributors

[![henkvalk](https://avatars.githubusercontent.com/u/8955854?v=4)](https://github.com/henkvalk "henkvalk (5 commits)")

### Embed Badge

![Health badge](/badges/falconmedia-magento2-merge-attribute-options/health.svg)

```
[![Health](https://phpackages.com/badges/falconmedia-magento2-merge-attribute-options/health.svg)](https://phpackages.com/packages/falconmedia-magento2-merge-attribute-options)
```

###  Alternatives

[illuminate/console

The Illuminate Console package.

13046.6M7.2k](/packages/illuminate-console)[styleci/cli

The CLI tool for StyleCI

71477.7k9](/packages/styleci-cli)[j13k/yaml-lint

A compact command line utility for checking YAML file syntax

161.2M25](/packages/j13k-yaml-lint)[winbox/args

Windows command-line formatter

20722.5k21](/packages/winbox-args)[mallardduck/laravel-traits

A collection of useful Laravel snippets in the form of easy to use traits.

136.2k2](/packages/mallardduck-laravel-traits)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
