update cli section of console command to compatibility with php 5.5