pmset is a Command Line utility for managing power settings in macOS. This is a good introduction1.

Listing current power management settings

pmset -g

Hibernate Modes

the hibernatemode setting can be configured with 3 typical integer values2:

valuedescription
0no backup of memory to disk, state will be lost on powerloss (desktop setting)
3safe sleep (default for laptops) - copy memory to disk, keep memory powered
25hibernate - store memory to disk, do not keep memory powered

1. Oakley, H. Power Management in detail: Using pmset. (2017).

2. Pmset.