Add cli command and tests.