I made Kolaczki dough with cream cheese butter and flour how long can i keep it in the refrigerator?
Butter and cream cheese contains some amount of water. And water from cheese and butter + sugars from flour makes it more friendly to mold and bacteria than any of ingredients separately. Also, your kitchen is not sterile. I wouldn't dare to store dough refrigerated for more than a week or two, wrapped well. Of course, your mileage may vary.

If you expect to store it longer than a week, cut it to smaller portion and freeze, in a way that you will allow you to unfreeze only the amount you want. Or, better yet, bake it all and give it to your friends. And when you need more, make more.