Skip to content

How to create duplicate product programmatically in magento2.4.6?

I want to create a duplicate product using the product id programmatically. I have tried many solutions but have not had success.
How to do it?