How to Legally Force a Family Member Into Drug Rehab?

I have a family member addicted to crack cocaine, we know she is a danger to herself and to others, she refuses to voluntarily get treatment, how can the family force her into a drug detox and rehab program? Is there some sort of motion that can be filed with the court?
I can I am planning on calling some attorneys tomorrow, just want some background info if you have experience or know anything about how to help out a drug addict who doesn’t want help but needs it