Fix method name of autopath query method in cli.