Toddler beds

When did you guys make the switch from crib to big boy bed? How’d it go? How’d you get your little one to stay in their bed?