For Battendog, I only used a create at night and did so like this:
First night it was right next to my bed. Popped him in it when he was sleepy and spent 10-20 mins sat on the floor with the door slightly open and my arm inside the crate, gently stroking him. I just kept repeating Shush now, settle down, hush now etc" in a gentle voice until he seemed like he was asleep. Then I shut the door but stay there, talking. Then I slowly moved away into bed but kept my arm drooped down. It probably took about an hour for me to be comfy and ready for sleep myself.
When he woke for a wee, we'd go and then I'd pop him back in the crate and repeat the above (it was a bit of a quicker process).
The second night I repeated but moved a bit quicker.
The third night I didn't bother with the door open bit.
I think it was the 4th or 5th night that the bedtime routine was down to just 5 mins of gentle talking.
The crate stayed by my bed for about 2-3 weeks and then I started to inch it across the room. By now he was going in voluntarily at night time, with the ocasional play up. Each night I would push it back by 1-2 inches until it was the other side of the room. If I wanted him to sleep elsewhere, I'd have kept on moving it but I didn't so it stayed te other end of the room until he was about 6 months old.
At that stage I decided he was clear to sleep with the door open. He still took himself into his open crate for a few weeks but gradually started sleeping outside of it, by choice. I then removed it completely and replaced it with a bed that he never uses.