Add console command api