how does the EV tax credit work, clean energy not sure what exactly its called?

how does the EV tax credit work, clean energy not exactly sure what its called? I just need so info on how to proceed at the dealership, if I let them do it there or file it myself?