How to control gpios of TCA9539 on console?

please check Topic 144550, for several ways to access GPIOs. such as, kernel APIs, python scripts, C++ samples.