How to specify which bootloader to flash through?

When flashing board in Arduino IDE, i can choose between old and not old bootloader. In my framework (GyverCore) i also have the option to choose OptiBoot v8 and a range of other parameters.

How to specify these parameters and the bootloader specifically in PlatformIO.ini? My board is only flashing with OptiBoot, and PlatformIO with the default ‘ini’ file cannot flash it.