Here are the standards that one needs to maintain when caring for cacti.
Light is one of the basic requirements for plants.
If you want your cactus to flower, then provide it with filtered light.
To achieve this, keep the plant inside the house, near a window through which a lot of light streams in. The amount for light needed differs in different cacti, for example, Christmas cactus needs bright sunlight.