add decode to cli