Add CLI tool

When the API test is simple (i.e. requires no setup), it's useful to be able to run the test from the CLI.