Like a lot of cities and travel destinations, it’s possible to purchase a discount card in Naples that enables you to have free/discounted access to various historical and cultural sites around the city. Sometimes these things are worth it, sometimes they are not.
In Naples however, I would strongly advise picking up a Campania >artecard swiftly after arriving in the city.
You can buy your pass online, on the >artecard app, at an >artecard point and at the ticket office of various tourist sites (at the Archaeological Museum, at Pompeii, etc)
There are variations of the Campania Artecard available and the most suitable will depend on your personal interests and your intended Naples itinerary.
The cards allow free access to some sites, free use of public transportation, and reduced entry at additional sites. Prices start from €12 for those under 25, and €21 for those over 25. Either way, it will save you a fair bit.