How does it work

I'm a FTM and my baby is 6 weeks old who I'm exclusively breastfeeding. I have a doubt, am I supposed to feed her every 2 hours or only when she cries? Sometimes she's sleeping soundly n in those cases should I wake her u to feed her since 2 hours r up or wait for her to wake up/cry to feed her?????