Command API implementation