Magento – How to export all the attribute and its options in magento 2

attribute-setattributescustom-attributesmagento2.2.2product-attribute

I wish to export all the attribute and its options in magento 2 via script.
Please provide me a solution, How to export attributes and its options

Best Answer

I was looking for the same thing and came here. The comment of nicolallias was actually helpful and solved my problem.

I Download and instaled this module https://github.com/BssGroup/magento-2-custom-product-attribute-export

After installing the extension, go to Store ⇒ Configuration ⇒ BSS Extension ⇒ Product Export Column and in"Allowed Attributes", a list of all custom attribute will be shown. Admins can choose all or specific attributes which will be in separate columns while exporting products.

You can export the products as CSV from System-> Data Transfer -> Export.

Read this for more details.. https://bsscommerce.com/blog/how-to-export-custom-product-attributes-in-magento-2/