Dragon fruit is a climbing perennial that you need to grow somewhere where it can be as non cooperative as it needs to be.
It’s triangular ‘stem/foliage’ tends to range anywhere it likes and defies control.
All is forgiven though, when it flowers in the evenings and then produces it’s wonderful fruit. Dragon fruit will fruit several times a year, depending on the climate.
The fruit is great for breakfast as it is not too sweet but very refreshing.
It tolerates, or rather, seems to prefer reasonably dry soil and will comfortably climb trees if they are around so full sun is not a necessity, but the vine needs to ‘top off’, which means that the higher it grows the longer it will take to fruit.
A pole or structure on which to climb is best kept at around 2 m high to ensure proper cropping.