There’s a lot of debate on this. Purists argue that a roguelike must mirror Rogue’s turn-based, dungeon crawler RPG approach to qualify.
Another school of thought is that a roguelike can refer to any game with procedural elements that will reset your progress completely after each playthrough, whereas a rogue-lite retains some elements of character progression, such as upgraded stats or unlocked weapons and abilities. Because of this, some consider that a roguelike is about the journey, whereas a rogue-lite is about the destination.