How can I reach my wordpress website with www

I want to reach my wordpress website with www but I coudnt. When I try to run this command " ee site create www.example com --wp --letsencrypt " www.example com is working but this time example.com dosent work. How can I solve this problem thank you .