feat(graph): graph api auto select support
add cli arguments --api