how to toggle oem unlock from fastboot? i have flashed a new rom , nano gapps , a new firmware(which i think may be corrupt and have created problems),so now i see the oneplus logo for almost 500ms and then black screen appears though i can boot into fastboot mode but not into TWRP.
Main problem is I don`t have enabled oem unlock from developer option as i have just flashed a new ROM.So,i just need a method to toggle oem unlock further all things can be done by me.

company OnePlus
model OnePlus 2
Just try these fastboot commands:-

adb reboot bootloader
fastboot oem unlock-go
//To Toggle
adb reboot bootloader
fastboot oem lock-go